summaryrefslogtreecommitdiff
path: root/Zend/tests/bug46813.phpt
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2008-12-09 19:17:11 +0000
committerJohannes Schlüter <johannes@php.net>2008-12-09 19:17:11 +0000
commitd828b8acc0403eed67bb73ea305581e319213555 (patch)
tree5311a6002f904c7824b221cb7e7afa7b7ae596c1 /Zend/tests/bug46813.phpt
parenta8578a5ab1bd78b553ca071aae95e25c441af24a (diff)
downloadphp-git-d828b8acc0403eed67bb73ea305581e319213555.tar.gz
MFH: Fix #46813 (class_exists doesn`t work with fully qualified namespace)
Diffstat (limited to 'Zend/tests/bug46813.phpt')
-rw-r--r--Zend/tests/bug46813.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Zend/tests/bug46813.phpt b/Zend/tests/bug46813.phpt
new file mode 100644
index 0000000000..91837db1ff
--- /dev/null
+++ b/Zend/tests/bug46813.phpt
@@ -0,0 +1,24 @@
+--TEST--
+Bug #46813: class_exists doesn`t work with fully qualified namespace
+--FILE--
+<?php
+namespace test;
+{
+ class inner
+ {
+
+ }
+}
+
+$inner = new \test\inner();
+
+echo "autoload == true:\n";
+var_dump(class_exists('\test\inner', true));
+echo "autoload == false:\n";
+var_dump(class_exists('\test\inner', true));
+?>
+--EXPECT--
+autoload == true:
+bool(true)
+autoload == false:
+bool(true)