/PHP-7.4/Zend/tests/ |
H A D | list_keyed_ArrayAccess.phpt | 28 public function offsetGet($offset) { 30 var_dump($offset); 32 public function offsetSet($offset, $value) { 34 public function offsetExists($offset) { 36 public function offsetUnset($offset) { 42 // PHP shouldn't convert this to an integer offset, because it's ArrayAccess
|
H A D | 036.phpt | 2 Trying to use lambda in array offset 12 Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d 14 Warning: Illegal offset type in %s on line %d 16 Warning: Illegal offset type in %s on line %d
|
H A D | str_offset_003.phpt | 2 string offset 003 23 Notice: Uninitialized string offset: -10 in %sstr_offset_003.php on line %d 27 Notice: Uninitialized string offset: -2 in %sstr_offset_003.php on line %d 31 Notice: Uninitialized string offset: -10 in %sstr_offset_003.php on line %d 35 Notice: Uninitialized string offset: -2 in %sstr_offset_003.php on line %d
|
H A D | bug71572.phpt | 2 Bug #71572: String offset assignment from an empty string inserts null byte 15 Warning: Cannot assign an empty string to a string offset in %s on line %d 18 Warning: Cannot assign an empty string to a string offset in %s on line %d 21 Warning: Cannot assign an empty string to a string offset in %s on line %d 24 Warning: Cannot assign an empty string to a string offset in %s on line %d
|
H A D | bug63217.phpt | 2 Bug #63217 (Constant numeric strings become integers when used as ArrayAccess offset) 10 public function offsetExists($offset) { 12 var_dump($offset); 14 public function offsetUnset($offset) { 16 var_dump($offset); 18 public function offsetSet($offset, $value) { 20 var_dump($offset); 22 public function offsetGet($offset) { 24 var_dump($offset);
|
H A D | str_offset_001.phpt | 2 string offset 001 31 Notice: Uninitialized string offset: 3 in %sstr_offset_001.php on line %d 35 Notice: Uninitialized string offset: 1 in %sstr_offset_001.php on line %d 41 Notice: Uninitialized string offset: 3 in %sstr_offset_001.php on line %d 45 Notice: Uninitialized string offset: 1 in %sstr_offset_001.php on line %d
|
/PHP-7.4/ext/date/tests/ |
H A D | DateTime_getOffset_basic1.phpt | 6 * Description: Returns the daylight saving time offset 19 echo "Winter offset: " . $winter->getOffset() / 3600 . " hours\n"; 20 echo "Summer offset: " . $summer->getOffset() / 3600 . " hours\n"; 26 Winter offset: 0 hours 27 Summer offset: 1 hours
|
/PHP-7.4/ext/spl/tests/ |
H A D | SplObjectStorage_unserialize_invalid_parameter2.phpt | 29 Error at offset %d of %d bytes 30 Error at offset %d of %d bytes 31 Error at offset %d of %d bytes 32 Error at offset %d of %d bytes 33 Error at offset %d of %d bytes
|
/PHP-7.4/ext/opcache/tests/ |
H A D | bug77275.phpt | 13 public function offsetSet($offset, $value) { throw new \Exception; } 14 public function offsetGet($offset) { var_dump($offset); } 15 public function offsetExists($offset) { throw new \Exception; } 16 public function offsetUnset($offset) { throw new \Exception; }
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_fetch_geom.phpt | 18 function func_mysqli_stmt_fetch_geom($link, $engine, $sql_type, $bind_value, $offset) { 21 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 33 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 38 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link)); 43 … printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 49 … printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 75 $offset + 17, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt), $num); 82 printf("[%04d] [%d] %s\n", $offset + 10, mysqli_errno($link), mysqli_error($link)); 105 printf("[%04d] [%d] %s\n", $offset + 14, mysqli_errno($link), mysqli_error($link)); 110 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_get_result_geom.phpt | 21 function func_mysqli_stmt_get_result_geom($link, $engine, $sql_type, $bind_value, $offset) { 24 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 36 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link)); 41 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link)); 46 … printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 52 … printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 73 printf("[%04d] [%d] %s\n", $offset + 11, mysqli_errno($link), mysqli_error($link)); 96 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link)); 101 printf("[%04d] [%d] %s\n", $offset + 16, mysqli_errno($link), mysqli_error($link)); 106 printf("[%04d] PS and non-PS return different data.\n", $offset + 17); [all …]
|
H A D | mysqli_stmt_bind_param_type_juggling.phpt | 16 printf("[%03d + 1] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 23 printf("[%03d + 2] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 28 printf("[%03d + 3] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 33 … printf("[%03d + 4] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 38 … printf("[%03d + 5] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 43 … printf("[%03d + 6] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 48 … printf("[%03d + 7] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 52 … printf("[%03d + 8] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 58 printf("[%03d + 9] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 69 $offset, $bind_value1, $bind_value1, [all …]
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_slice_basic.phpt | 5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]]) 6 * Description: Returns elements specified by offset and length 18 $offset = 2; 24 var_dump( array_slice($input, $offset, $length, $preserve_keys) ); 28 var_dump( array_slice($input, $offset) );
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobs.phpt | 25 function test_blob($db, $offset, $sql_type, $test_len) { 36 $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 47 $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); 53 $offset, strlen($label), strlen($value)); 59 $offset, var_export($id, true)); 68 $offset, strlen($ret['label']), strlen($value)); 74 $offset, var_export($ret['id'], true)); 81 $offset = 0; 84 test_blob($db, ++$offset, $sql_type, $test_len); 86 test_blob($db, ++$offset, $sql_type, $test_len);
|
/PHP-7.4/ext/spl/ |
H A D | spl_fixedarray.c | 323 if (!offset) { in spl_fixedarray_object_read_dimension_helper() 331 index = Z_LVAL_P(offset); in spl_fixedarray_object_read_dimension_helper() 359 if (!offset) { in spl_fixedarray_object_read_dimension() 361 offset = &tmp; in spl_fixedarray_object_read_dimension() 366 zval_ptr_dtor(offset); in spl_fixedarray_object_read_dimension() 381 if (!offset) { in spl_fixedarray_object_write_dimension_helper() 415 if (!offset) { in spl_fixedarray_object_write_dimension() 417 offset = &tmp; in spl_fixedarray_object_write_dimension() 424 zval_ptr_dtor(offset); in spl_fixedarray_object_write_dimension() 461 zval_ptr_dtor(offset); in spl_fixedarray_object_unset_dimension() [all …]
|
/PHP-7.4/ext/phar/tests/zip/files/ |
H A D | corrupt_zipmaker.php.inc | 41 var $offset = 0; 171 0x0000, $this->offset). 179 0x0000, $this->offset). 187 0x0000, $this->offset). 195 0x0000, $this->offset). 203 0x0000, $this->offset). 211 0x0000, $this->offset). 219 0x0000, $this->offset). 223 case 'offset' : 273 $offset = 0; [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | bug38450.phpt | 48 function stream_seek($offset, $whence) 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 53 $this->position = $offset; 61 if ($offset >= 0) { 62 $this->position += $offset; 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_1.phpt | 48 function stream_seek($offset, $whence) 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 53 $this->position = $offset; 61 if ($offset >= 0) { 62 $this->position += $offset; 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | bug38450_2.phpt | 48 function stream_seek($offset, $whence) 52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 53 $this->position = $offset; 61 if ($offset >= 0) { 62 $this->position += $offset; 70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | include_userstream_002.phpt | 53 function stream_seek($offset, $whence) 56 return fseek($this->stream, $offset, $whence); 60 if ($offset < $this->data && $offset >= 0) { 61 $this->pos = $offset; 68 if ($offset >= 0) { 69 $this->pos += $offset; 76 if (strlen($this->data) + $offset >= 0) { 77 $this->pos = strlen($this->data) + $offset;
|
/PHP-7.4/ext/dom/ |
H A D | text.c | 31 ZEND_ARG_INFO(0, offset) 144 zend_long offset; in PHP_FUNCTION() local 149 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &offset) == FAILURE) { in PHP_FUNCTION() 164 if (ZEND_LONG_INT_OVFL(offset) || (int)offset > length || offset < 0) { in PHP_FUNCTION() 169 first = xmlUTF8Strndup(cur, (int)offset); in PHP_FUNCTION() 170 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_FUNCTION()
|
/PHP-7.4/tests/classes/ |
H A D | array_access_013.phpt | 8 … public function offsetExists($offset) { throw new Exception(__METHOD__); return false; } 9 … public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; } 10 public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); } 11 public function offsetUnset($offset) { throw new Exception(__METHOD__); }
|
/PHP-7.4/ext/standard/ |
H A D | microtime.c | 68 timelib_time_offset *offset; in _php_gettimeofday() local 70 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info()); in _php_gettimeofday() 76 add_assoc_long(return_value, "minuteswest", -offset->offset / SEC_IN_MIN); in _php_gettimeofday() 77 add_assoc_long(return_value, "dsttime", offset->is_dst); in _php_gettimeofday() 79 timelib_time_offset_dtor(offset); in _php_gettimeofday()
|
/PHP-7.4/ext/opcache/Optimizer/ |
H A D | optimize_temp_vars_5.c | 45 int offset = op_array->last_var; in zend_optimize_temporary_variables() local 69 start_of_T[VAR_NUM(opline->result.var) - offset] = opline; in zend_optimize_temporary_variables() 82 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables() 96 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables() 138 opline->op1.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 143 currT = VAR_NUM(opline->op2.var) - offset; in zend_optimize_temporary_variables() 149 opline->op2.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 153 currT = VAR_NUM(opline->result.var) - offset; in zend_optimize_temporary_variables() 163 opline->result.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables() 178 opline->result.var = NUM_VAR(i + offset); in zend_optimize_temporary_variables()
|
/PHP-7.4/main/streams/ |
H A D | php_stream_mmap.h | 49 size_t offset; member 70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… 71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((str… argument
|