NickSdot
430547e7d0
Zend: applied fixers to improve test robustness (part 5/8) ( #23313 )
2026-08-22 14:20:55 +01:00
Alexandre Daubois
49e3956b70
core: Deprecate using null as an array offset and when calling array_key_exists() ( #19511 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists
2025-09-04 22:12:24 +01:00
George Peter Banyard
99fa740acb
Use common function for TypeError on illegal offset access ( #10544 )
...
This merges all usages of emitting an offset TypeError into a new ZEND_API function
zend_illegal_container_offset(const zend_string* container, const zval *offset, int type);
Where the container should represent the type on which the access is attempted (e.g. string, array)
The offset zval that is used, where the error message will display its type
The type of access, which should be a BP_VAR_* constant, to get special message for isset/empty/unset
2023-06-06 11:28:19 +01:00
Marcos Marcolin and Marcos Marcolin
641fe23e3a
Improve illegal offset error messages ( #10504 )
...
Co-authored-by: Marcos Marcolin <marcos@ixcsoft.com.br >
2023-02-08 12:11:41 +00:00
Ayesh Karunaratne
b8e380ab09
Update deprecation message for incompatible float to int conversion
...
Updates the deprecation message for implicit incompatible float to int conversion from:
```
Implicit conversion from non-compatible float %.*H to int in %s on line %d
```
to
```
Implicit conversion from float %.*H to int loses precision in %s on line %d
```
Related: #6661
2021-06-07 14:36:11 +02:00
George Peter Banyard and Nikita Popov
b6958bb847
Implement "Deprecate implicit non-integer-compatible float to int conversions" RFC. ( #6661 )
...
RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2021-05-31 15:48:45 +01:00
Nikita Popov
c48b745f00
Promote "undefined array key" notice to warning
...
This implements the last remaining part of the
https://wiki.php.net/rfc/engine_warnings RFC.
Closes GH-5927.
2020-08-03 14:40:50 +02:00
Máté Kocsis
d30cd7d7e7
Review the usage of apostrophes in error messages
...
Closes GH-5590
2020-07-10 21:05:28 +02:00
Nikita Popov
2f92957fd3
Convert some notices to warnings
...
Part of https://wiki.php.net/rfc/engine_warnings .
2019-10-02 10:34:08 +02:00
Nikita Popov
0ebf2bdba0
Convert "Illegal offset type" warnings to exceptions
2019-09-27 13:00:07 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Nikita Popov
8d00385871
Reclassify E_STRICT notices
...
Per RFC https://wiki.php.net/rfc/reclassify_e_strict
While reviewing this, found that there are still three E_STRICTs
left in libraries - need to discuss those.
2015-04-01 11:17:55 +02:00
Felipe Pena
c7cb8551fe
Fix tests (removed space on error message "Undefined index: ...")
2008-03-08 12:01:53 +00:00
Antony Dovgal
ff59351416
add new tests
2006-06-01 11:57:49 +00:00