/php-src/Zend/tests/offsets/ |
H A D | invalid_container_offset_behaviour.phpt | 23 Warning: Trying to access array offset on $containerStr in %s on line 8 29 Warning: Trying to access array offset on $containerStr in %s on line 22 42 Cannot unset offset in a non-array variable 45 Warning: Trying to access array offset on $containerStr in %s on line 74 47 Warning: Trying to access array offset on null in %s on line 74 60 Cannot unset offset in a non-array variable 84 foreach ($offsets as $offset) { 85 $dimension = &$offset;
|
H A D | internal_handlers.phpt | 224 … false, unset: false, readType: BP_VAR_R, hasOffset: true, checkEmpty: uninitialized, offset: 'foo' 228 … false, unset: false, readType: BP_VAR_R, hasOffset: true, checkEmpty: uninitialized, offset: 'foo' 230 …se, has: true, unset: false, readType: uninitialized, hasOffset: true, checkEmpty: 0, offset: 'foo' 232 …se, has: true, unset: false, readType: uninitialized, hasOffset: true, checkEmpty: 1, offset: 'foo' 234 …false, unset: false, readType: BP_VAR_IS, hasOffset: true, checkEmpty: uninitialized, offset: 'foo' 241 Warning: Trying to access array offset on true in %s on line %d 242 … false, unset: false, readType: BP_VAR_R, hasOffset: true, checkEmpty: uninitialized, offset: 'foo' 247 … false, unset: false, readType: BP_VAR_W, hasOffset: true, checkEmpty: uninitialized, offset: 'foo' 273 … false, unset: false, readType: BP_VAR_W, hasOffset: true, checkEmpty: uninitialized, offset: 'foo' 282 Error: Cannot unset offset in a non-array variable [all …]
|
/php-src/tests/strings/ |
H A D | offsets_chaining_5.phpt | 2 testing the behavior of string offset chaining 18 Warning: Illegal string offset "0foo" in %s on line %d 22 Warning: Illegal string offset "0foo" in %s on line %d 24 Warning: Illegal string offset "0bar" in %s on line %d
|
/php-src/ext/mysqli/tests/ |
H A D | local_infile_tools.inc | 58 function create_standard_csv($offset, $verbose = true) { 63 printf("[%03d + 1] Cannot create CVS file '%s'\n", $offset, $file); 74 printf("[%03d + 3] Cannot write CVS file '%s'\n", $offset, $file); 83 $offset, $file); 89 function try_handler($offset, $link, $file, $handler, $expected = null) { 94 printf("[%03d] Cannot set infile handler to '%s'\n", $offset, $handler); 110 $offset + 2, 115 printf("[%03d] [%d] %s\n", $offset + 3, mysqli_errno($link), mysqli_error($link)); 129 $offset + 5, $k, 135 $offset + 6, $k, [all …]
|
H A D | mysqli_reap_async_query.phpt | 25 function poll_async($offset, $link, $links, $errors, $reject, $exp_ready, $use_oo_syntax) { 29 $offset, $exp_ready, $tmp); 38 printf("[%03d + 2] %s\n", $offset, var_export($res->fetch_assoc(), true)); 41 $offset, mysqli_errno($mysqli), mysqli_error($mysqli)); 43 … printf("[%03d + 4] Cannot fetch and no error set - non resultset query (no SELECT)!\n", $offset); 49 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli)); 53 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
|
H A D | mysqli_stmt_bind_limits.phpt | 16 function bind_many($offset, $link, $num_params, $rows, $eval = true) { 46 printf("[%03d + 01] [%d] %s\n", $offset, $link->errno, $link->error); 52 printf("[%03d + 02] [%d] %s\n", $offset, $link->errno, $link->error); 56 …printf("[%03d + 03] Parameter count should be %d but got %d\n", $offset, $num_params * $rows, $stm… 63 printf("[%03d + 03] [%d] %s\n", $offset, $stmt->errno, $stmt->error); 73 printf("[%03d + 03] [%d] %s\n", $offset, $stmt->errno, $stmt->error); 78 …printf("[%03d + 03] Parameter count should be %d but got %d\n", $offset, $num_params * $rows, $stm… 83 printf("[%03d + 04] [%d] %s\n", $offset, $stmt->errno, $stmt->error); 91 printf("[%03d + 05] [%d] %s\n", $offset, $link->errno, $link->error); 100 printf("[%03d + 06] [%d] %s\n", $offset, $link->errno, $link->error);
|
/php-src/ext/standard/tests/serialize/ |
H A D | unserialize_large.phpt | 13 Warning: unserialize(): Error at offset 14 of 15 bytes in %s on line %d 16 Warning: unserialize(): Error at offset 2 of 20 bytes in %s on line %d 19 Warning: unserialize(): Error at offset 18 of 21 bytes in %s on line %d 24 Warning: unserialize(): Error at offset 20 of 21 bytes in %s on line %d
|
H A D | serialization_objects_018.phpt | 23 Warning: unserialize(): Error at offset 9 of 15 bytes in %s on line %d 26 Warning: unserialize(): Error at offset 10 of 15 bytes in %s on line %d 29 Warning: unserialize(): Error at offset 14 of 15 bytes in %s on line %d 32 Warning: unserialize(): Error at offset 8 of 8 bytes in %s on line %d
|
H A D | unserialize_extra_data_001.phpt | 13 Warning: unserialize(): Extra data starting at offset 4 of 8 bytes in %s on line %d 16 Warning: unserialize(): Extra data starting at offset 2 of 6 bytes in %s on line %d 19 Warning: unserialize(): Extra data starting at offset 4 of 8 bytes in %s on line %d 22 Warning: unserialize(): Extra data starting at offset 20 of 24 bytes in %s on line %d
|
/php-src/ext/standard/tests/file/ |
H A D | include_streams.phpt | 68 function stream_seek($offset, $whence) 72 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 73 $this->position = $offset; 80 if ($offset >= 0) { 81 $this->position += $offset; 88 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 89 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
H A D | userstreams.phpt | 126 function stream_seek($offset, $whence) 130 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 131 $this->position = $offset; 138 if ($offset >= 0) { 217 $offset = rand(0, $DATALEN - 1); 218 $position = $offset; 221 $offset = -rand(0, $DATALEN - 1); 222 $position = $DATALEN + $offset; 225 $offset = rand(0, $DATALEN - 1); 226 $offset -= $position; [all …]
|
/php-src/ext/opcache/tests/jit/ |
H A D | gh12723-A.phpt | 2 GH-12723: Function JIT emits "Uninitialized string offset" warning at the same time as invalid offs… 20 Cannot access offset of type array on string
|
H A D | gh12747.phpt | 2 GH-12747: Function JIT returns invalid error message for coalesce operator on invalid offset 31 Cannot access offset of type stdClass in isset or empty 33 Cannot access offset of type stdClass in isset or empty 35 Cannot access offset of type stdClass on array
|
/php-src/ext/spl/tests/ |
H A D | bug66834.phpt | 9 public function offsetExists($offset): bool { 11 return parent::offsetExists($offset); 14 public function offsetGet($offset): mixed { 16 return parent::offsetGet($offset); 23 public function offsetExists($offset): bool { 25 return parent::offsetExists($offset); 32 public function offsetGet($offset): mixed { 34 return parent::offsetGet($offset); 41 public function offsetGet($offset): mixed 43 return parent::offsetGet(str_rot13($offset)); [all …]
|
/php-src/ext/zend_test/ |
H A D | object_handlers.c | 245 static void dimension_common_helper(zend_object *object, zval *offset, int prop_access_type) { in dimension_common_helper() argument 248 ZVAL_BOOL(OBJ_PROP_NUM(object, 5), offset != NULL); in dimension_common_helper() 249 if (offset) { in dimension_common_helper() 250 ZVAL_COPY(OBJ_PROP_NUM(object, 7), offset); in dimension_common_helper() 255 dimension_common_helper(object, offset, 0); in dimension_handlers_no_ArrayAccess_read_dimension() 264 static void dimension_handlers_no_ArrayAccess_write_dimension(zend_object *object, zval *offset, zv… in dimension_handlers_no_ArrayAccess_write_dimension() argument 265 dimension_common_helper(object, offset, 1); in dimension_handlers_no_ArrayAccess_write_dimension() 268 static int dimension_handlers_no_ArrayAccess_has_dimension(zend_object *object, zval *offset, int c… in dimension_handlers_no_ArrayAccess_has_dimension() argument 271 dimension_common_helper(object, offset, 2); in dimension_handlers_no_ArrayAccess_has_dimension() 277 static void dimension_handlers_no_ArrayAccess_unset_dimension(zend_object *object, zval *offset) { in dimension_handlers_no_ArrayAccess_unset_dimension() argument [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMComment_insertData_error1.phpt | 11 //Negative offset 18 echo "Throws DOMException for -ve offset\n"; 24 Throws DOMException for -ve offset
|
H A D | DOMComment_replaceData_error1.phpt | 11 //Negative offset 18 echo "Throws DOMException for -ve offset\n"; 24 Throws DOMException for -ve offset
|
H A D | DOMComment_insertData_error2.phpt | 11 //offset to large 18 echo "Throws DOMException for offset too large\n"; 24 Throws DOMException for offset too large
|
H A D | DOMComment_replaceData_error2.phpt | 11 //offset to large 18 echo "Throws DOMException for offset too large\n"; 24 Throws DOMException for offset too large
|
/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobfromstream.phpt | 34 function blob_from_stream($offset, $db, $file, $blob) { 39 printf("[%03d + 1] Cannot remove old test file\n", $offset); 45 printf("[%03d + 2] Cannot create test file '%s'\n", $offset, $file); 52 printf("[%03d + 3] Failed to create test file '%s'\n", $offset, $file); 60 printf("[%03d + 4] %s\n", $offset, var_export($db->errorInfo(), true)); 66 printf("[%03d + 5] Cannot create test file '%s'\n", $offset, $file); 75 $offset, 82 … printf("[%03d + 7] Failed to INSERT data, %s\n", $offset, var_export($stmt->errorInfo(), true)); 89 printf("[%03d + 8] INSERT and/or SELECT has failed, dumping data.\n", $offset); 102 printf("[%03d + 9] %s\n", $offset, var_export($stmt->errorInfo(), true)); [all …]
|
H A D | pdo_mysql_stmt_bindparam_types.phpt | 15 function pdo_mysql_stmt_bindparam_types_do($db, $offset, $native, $sql_type, $value) { 28 printf("[%03d/%s + 1] %s\n", $offset, ($native) ? 'native' : 'emulated', 33 printf("[%03d/%s + 2] %s\n", $offset, ($native) ? 'native' : 'emulated', 41 printf("[%03d/%s + 3] %s\n", $offset, ($native) ? 'native' : 'emulated', 46 printf("[%03d/%s + 4] %s\n", $offset, ($native) ? 'native' : 'emulated', 60 $offset, ($native) ? 'native' : 'emulated', 75 $offset, ($native) ? 'native' : 'emulated', 82 $offset, ($native) ? 'native' : 'emulated', 91 function pdo_mysql_stmt_bindparam_types($db, $offset, $sql_type, $value) { 92 pdo_mysql_stmt_bindparam_types_do($db, $offset, true, $sql_type, $value); [all …]
|
/php-src/ext/calendar/tests/ |
H A D | jddayofweek.phpt | 11 for ($offset = 0; $offset <= 7; $offset++) { 12 echo jddayofweek($jd + $offset, $mode). "\n";
|
/php-src/Zend/tests/ |
H A D | list_keyed_evaluation_order.phpt | 11 …IndexableRetrievable("E", new Indexable(["A" => "value for offset A", "C" => "value for offset C"]… 32 Offset B set to value for offset A. 35 Offset D set to value for offset C.
|
H A D | bug81159.phpt | 2 Bug #81159: Object to int warning when using an object as a string offset 20 Cannot access offset of type stdClass on string 21 Cannot access offset of type stdClass on string
|
/php-src/ext/intl/tests/ |
H A D | resourcebundle_arrayaccess.phpt | 26 echo "Using a reference as an offset:\n"; 27 $offset = 'teststring'; 28 $ref = &$offset; 54 Using a reference as an offset:
|