From bfa24e34889ec8840bc86c5c39afcfb353d06567 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 4 Jul 2017 07:23:46 +0300 Subject: [PATCH] Fixed bug #74836 (isset on zero-prefixed numeric indexes in array broken) --- NEWS | 2 ++ Zend/tests/bug74836.phpt | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Zend/tests/bug74836.phpt diff --git a/NEWS b/NEWS index 26d09174b9..f30825c982 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ PHP NEWS . Added object type annotation. (brzuchal) . Fixed bug #74815 (crash with a combination of INI entries at startup). (Anatol) + . Fixed bug #74836 (isset on zero-prefixed numeric indexes in array broken). + (Dmitry) - CLI: . Fixed bug #74849 (Process is started as interactive shell in PhpStorm). diff --git a/Zend/tests/bug74836.phpt b/Zend/tests/bug74836.phpt new file mode 100644 index 0000000000..7281a07e0e --- /dev/null +++ b/Zend/tests/bug74836.phpt @@ -0,0 +1,33 @@ +--TEST-- +Bug #74836 (isset on zero-prefixed numeric indexes in array broken) +--FILE-- + +--EXPECTF-- +string(1) "a" +bool(true) +string(1) "a" +bool(true) +string(1) "a" +bool(true) +string(2) "42" +bool(true) + +Notice: Undefined index: 010 in %s on line %d +NULL +bool(false) + +Notice: Undefined index: 010 in %s on line %d +NULL +bool(false) -- 2.50.1