]> granicus.if.org Git - php/commit
Expect string argument in hexdec, octdec, bindec
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 3 Jun 2019 08:27:15 +0000 (10:27 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 3 Jun 2019 09:26:25 +0000 (11:26 +0200)
commitfd911a712424dc9c33a6a8ec415f72a645a58790
tree28225c69babf6321694f68fb9f3124dccbd3553a
parentef41eaa5c6b7305ad1760ecd43ae35aca6dce9c2
Expect string argument in hexdec, octdec, bindec

Instead of accepting zval and converting to string. Also rewrite the
functions to make it obvious that they cannot return false.
ext/opcache/Optimizer/zend_func_info.c
ext/standard/math.c
ext/standard/php_math.h
ext/standard/tests/math/bindec_variation1_64bit.phpt
ext/standard/tests/math/hexdec_variation1_64bit.phpt
ext/standard/tests/math/octdec_variation1.phpt