/PHP-7.4/ext/standard/tests/file/ |
H A D | fpassthru_basic.phpt | 28 echo "\n-- After seeking position to 0 --\n"; 32 echo "\n-- After seeking position to 3 --\n"; 36 echo "\n-- After seeking position to 13 --\n"; 40 echo "\n-- After seeking position to 14 --\n"; 77 -- After seeking position to 0 -- 86 -- After seeking position to 3 -- 95 -- After seeking position to 13 -- 103 -- After seeking position to 14 -- 111 -- After seeking position to 23 -- 119 -- After seeking position to 34 -- [all …]
|
H A D | bug38450.phpt | 7 var $position; 18 $this->position = 0; 25 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 26 $this->position += strlen($ret); 32 $left = substr($GLOBALS[$this->varname], 0, $this->position); 35 $this->position += strlen($data); 41 return $this->position; 46 return $this->position >= strlen($GLOBALS[$this->varname]); 53 $this->position = $offset; 62 $this->position += $offset; [all …]
|
H A D | bug38450_1.phpt | 7 var $position; 18 $this->position = 0; 25 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 26 $this->position += strlen($ret); 32 $left = substr($GLOBALS[$this->varname], 0, $this->position); 35 $this->position += strlen($data); 41 return $this->position; 46 return $this->position >= strlen($GLOBALS[$this->varname]); 53 $this->position = $offset; 62 $this->position += $offset; [all …]
|
H A D | bug38450_2.phpt | 7 var $position; 18 $this->position = 0; 25 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 26 $this->position += strlen($ret); 32 $left = substr($GLOBALS[$this->varname], 0, $this->position); 35 $this->position += strlen($data); 41 return $this->position; 46 return $this->position >= strlen($GLOBALS[$this->varname]); 53 $this->position = $offset; 62 $this->position += $offset; [all …]
|
H A D | bug38450_3.phpt | 7 var $position; 18 $this->position = 0; 25 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 26 $this->position += strlen($ret); 32 $left = substr($GLOBALS[$this->varname], 0, $this->position); 35 $this->position += strlen($data); 41 return $this->position; 46 return $this->position >= strlen($GLOBALS[$this->varname]); 53 $this->position = $offset; 62 $this->position += $offset; [all …]
|
H A D | include_streams.phpt | 17 public $position; 43 $this->position = strlen($GLOBALS[$this->varname]); 45 $this->position = 0; 52 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 53 $this->position += strlen($ret); 59 return $this->position; 64 return $this->position >= strlen($GLOBALS[$this->varname]); 72 $this->position = $offset; 80 $this->position += $offset; 88 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | fopencookie.phpt | 20 public $position = 0; 30 $ret = substr($this->data, $this->position, $count); 31 $this->position += strlen($ret); 37 return $this->position; 42 return $this->position >= strlen($this->data); 50 $this->position = $offset; 58 $this->position += $offset; 66 $this->position = strlen($this->data) + $offset;
|
H A D | userstreams.phpt | 88 public $position; 103 $this->position = 0; 111 $this->position += strlen($ret); 117 return $this->position; 130 $this->position = $offset; 138 $this->position += $offset; 208 $position = 0; 214 $position = $offset; 222 $offset -= $position; 223 $position += $offset; [all …]
|
H A D | 007_variation10.phpt | 19 checking for the file pointer position, 33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
|
H A D | 007_variation18.phpt | 19 checking for the file pointer position, 33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
|
H A D | 007_variation2.phpt | 19 checking for the file pointer position, 33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 35 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end… 37 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
|
H A D | 007_variation8.phpt | 19 checking for the file pointer position, 31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 33 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en… 36 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
|
/PHP-7.4/ext/sqlite3/tests/ |
H A D | stream_test.inc | 5 private $position; 11 $this->position = 0; 17 $ret = substr(self::$string, $this->position, $count); 18 $this->position += strlen($ret); 34 return $this->position; 39 return ($this->position >= self::$string_length);
|
/PHP-7.4/ext/intl/tests/ |
H A D | bug75378.phpt | 2 Bug #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position argument) 11 $position = 0; 12 $parsedDate = $formatter->parse("2017-10-12", $position); 13 var_dump($position);
|
/PHP-7.4/Zend/tests/ |
H A D | bug38779.phpt | 7 private $position; 11 $this->position = 0; 15 $ret = substr($this->data, $this->position, $count); 16 $this->position += strlen($ret); 20 return $this->position >= strlen($this->data);
|
H A D | bug38779_1.phpt | 7 private $position; 11 $this->position = 0; 15 $ret = substr($this->data, $this->position, $count); 16 $this->position += strlen($ret); 20 return $this->position >= strlen($this->data);
|
/PHP-7.4/ext/intl/formatter/ |
H A D | formatter_parse.c | 45 int32_t val32, position = 0; in PHP_FUNCTION() local 64 position = (int32_t) zval_get_long(zposition); in PHP_FUNCTION() 65 position_p = &position; in PHP_FUNCTION() 108 ZEND_TRY_ASSIGN_REF_LONG(zposition, position); in PHP_FUNCTION() 134 int32_t position = 0; in PHP_FUNCTION() local 156 position = (int32_t) zval_get_long(zposition); in PHP_FUNCTION() 157 position_p = &position; in PHP_FUNCTION() 162 ZEND_TRY_ASSIGN_REF_LONG(zposition, position); in PHP_FUNCTION()
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | each_variation6.phpt | 12 * Test the position of the internal array pointer after a call to each() 19 echo "\n-- Current position: --\n"; 25 echo "\n-- New position: --\n"; 33 -- Current position: -- 50 -- New position: --
|
H A D | key_exists_variation2.phpt | 19 // 42 has index = 0, netherless its position is the latest 28 // 'baz' has index = 0, netherless its position is the latest 40 // object has index = 0, netherless its position is the latest 44 // object has index = 0, netherless its position is the first 49 // stream resource has index = 0, netherless its position is the first 54 // stream resource has index = 0, netherless its position is the latest
|
H A D | each_basic.phpt | 21 echo "\n-- Initial position: --\n"; 24 echo "\n-- End position: --\n"; 48 -- Initial position: -- 62 -- End position: --
|
H A D | reset_variation3.phpt | 11 * Reference two arrays to each other then call reset() to test position of 19 echo "\n-- Initial position of internal pointer --\n"; 45 -- Initial position of internal pointer --
|
H A D | array_push_variation5.phpt | 2 Test array_push() function : usage variations - position of internal array pointer 11 * Check the position of the internal array pointer after calling array_push()
|
/PHP-7.4/ext/phar/tests/zip/ |
H A D | bug48791.phpt | 13 …position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by…
|
/PHP-7.4/main/streams/ |
H A D | cast.c | 75 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument 78 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker() 106 static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) in stream_cookie_seeker() argument 109 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker() 111 if (*position == -1) { in stream_cookie_seeker() 117 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument 120 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker() 202 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast()
|
/PHP-7.4/ext/spl/tests/ |
H A D | array_014.phpt | 46 Seek position -1 is out of range 47 Seek position 12 is out of range
|