1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 14:12:38 +02:00
Commit Graph

7 Commits

Author SHA1 Message Date
George Peter Banyard
b2248789ed Implement 'Saner Numeric Strings' RFC:
RFC: https://wiki.php.net/rfc/saner-numeric-strings

This removes the -1 allow_error mode from is_numeric_string functions and replaces it by
a trailing boolean out argument to preserve BC in a couple of places.

Most of the changes can be resumed to "numeric" strings which emitted a E_NOTICE now emit
a E_WARNING and "numeric" strings which emitted a E_WARNING now throw a TypeError.

This mostly affects:
 - String offsets
 - Arithmetic operations
 - Bitwise operations

Closes GH-5762
2020-07-29 02:51:09 +01:00
Nikita Popov
f8d795820e Reindent phpt files 2020-02-03 22:52:20 +01:00
Stanislav Malyshev
d36263b7bb fix tests 2011-12-26 01:08:47 +00:00
Ilia Alshanetsky
cce5e8c9ea Updated tests to use [] instead of {} 2005-11-16 15:13:20 +00:00
Moriyoshi Koizumi
3f04205371 Fixed typo 2003-03-14 17:12:24 +00:00
Moriyoshi Koizumi
2d40fe2222 Further testing on this feature should have been done... 2003-03-06 19:37:19 +00:00
foobar
888a084ccb added test for the memleak part from bug #19943 2003-03-06 16:29:05 +00:00