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

/PHP_5_3/ext/standard/
H A Dstreamsfuncs.c415 desiredpos = -1L; local
420 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &desiredpos) == FAILURE) {
426 if (desiredpos >= 0) {
431 if (position >= 0 && desiredpos > position) {
433 seek_res = php_stream_seek(stream, desiredpos - position, SEEK_CUR);
434 } else if (desiredpos < position) {
436 seek_res = php_stream_seek(stream, desiredpos, SEEK_SET);
441 "Failed to seek to position %ld in the stream", desiredpos);

Completed in 5 milliseconds