summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-07-28 12:35:27 +0000
committerDmitry Stogov <dmitry@php.net>2009-07-28 12:35:27 +0000
commitff766c1de20dc1e6debcb3bced82c890172bf134 (patch)
tree584b13c72badeb9490a64bf3aee696b9f5f79cc4 /Zend/tests
parent421b6e0f2c0f5219c363901e076ecdf7c037b995 (diff)
downloadphp-git-ff766c1de20dc1e6debcb3bced82c890172bf134.tar.gz
Fixed bug #48912 (Namespace causes unexpected strict behaviour with extract())
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug48912.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/bug48912.phpt b/Zend/tests/bug48912.phpt
new file mode 100644
index 0000000000..dc021a2efc
--- /dev/null
+++ b/Zend/tests/bug48912.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #48912 (Namespace causes unexpected strict behaviour with extract())
+--FILE--
+<?php
+namespace A;
+
+function test()
+{
+ extract(func_get_arg(0));
+}
+
+test(array('x' => 1));
+echo "ok\n";
+?>
+--EXPECT--
+ok