diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-12-25 13:18:45 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-12-26 12:39:06 +0100 |
commit | b2b2b437af5495dcb2016be6e45567ed826cb87e (patch) | |
tree | 7cf17c011f6b9c272eebf184fa47d5c35f455b2f /ext/pcre/php_pcre.c | |
parent | efcbea43455ca4e27ec6fc5ce2f3a740a981247e (diff) | |
download | php-git-b2b2b437af5495dcb2016be6e45567ed826cb87e.tar.gz |
Add _IS_NUMBER as cast_object() target type
convert_scalar_to_number() will now call cast_object() with an
_IS_NUMBER argument, in which case the cast handler should return
either an integer or floating point number, whichever is more
appropriate.
Previously convert_scalar_to_number() unconditionally converted
objects to integers instead.
Fixes bug #53033.
Fixes bug #54973.
Fixes bug #73108.
Diffstat (limited to 'ext/pcre/php_pcre.c')
0 files changed, 0 insertions, 0 deletions