Home
last modified time | relevance | path

Searched refs:desiredpos (Results 1 – 1 of 1) sorted by relevance

/PHP-5.6/ext/standard/
H A Dstreamsfuncs.c411 desiredpos = -1L; in PHP_FUNCTION() local
415 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &desiredpos) == FAILU… in PHP_FUNCTION()
421 if (desiredpos >= 0) { in PHP_FUNCTION()
426 if (position >= 0 && desiredpos > position) { in PHP_FUNCTION()
428 seek_res = php_stream_seek(stream, desiredpos - position, SEEK_CUR); in PHP_FUNCTION()
429 } else if (desiredpos < position) { in PHP_FUNCTION()
431 seek_res = php_stream_seek(stream, desiredpos, SEEK_SET); in PHP_FUNCTION()
436 "Failed to seek to position %ld in the stream", desiredpos); in PHP_FUNCTION()

Completed in 8 milliseconds