From ea3c541640a75340ea06c460cf282bde5bf75b13 Mon Sep 17 00:00:00 2001 From: Jorg Adam Sowa Date: Wed, 24 Jan 2024 12:02:32 +0100 Subject: [PATCH] GH-13142: add missing test cases (#13235) * Added missing global cases to test * Update gh13142 --- Zend/tests/gh13142.phpt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Zend/tests/gh13142.phpt b/Zend/tests/gh13142.phpt index 15285824ee2..1e55a4a2559 100644 --- a/Zend/tests/gh13142.phpt +++ b/Zend/tests/gh13142.phpt @@ -10,6 +10,10 @@ $$a; $a = "test\0"; $$a; +$GLOBALS["test\0test"]; +$GLOBALS["\0test"]; +$GLOBALS["test\0"]; + compact("a\0b"); compact("\0ab"); compact("ab\0"); @@ -22,6 +26,12 @@ Warning: Undefined variable $%0test in %s on line %d Warning: Undefined variable $test%0 in %s on line %d +Warning: Undefined global variable $test%0test in %s on line %d + +Warning: Undefined global variable $%0test in %s on line %d + +Warning: Undefined global variable $test%0 in %s on line %d + Warning: compact(): Undefined variable $a%0b in %s on line %d Warning: compact(): Undefined variable $%0ab in %s on line %d