diff options
author | Felipe Pena <felipe@php.net> | 2008-11-26 10:17:01 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-11-26 10:17:01 +0000 |
commit | 1f89cd329fd35648ea4d066b0896243b22b305a0 (patch) | |
tree | 5beb0ad186e1a35e28fe8f61a35e0f38db5dcffc /Zend | |
parent | f689708192f839668354a0c9740e43469bbdbb57 (diff) | |
download | php-git-1f89cd329fd35648ea4d066b0896243b22b305a0.tar.gz |
- New test
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/tests/bug46665.phpt | 15 | ||||
-rw-r--r-- | Zend/tests/bug46665_autoload.php | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/bug46665.phpt b/Zend/tests/bug46665.phpt new file mode 100644 index 0000000000..994ea8b795 --- /dev/null +++ b/Zend/tests/bug46665.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #46665 (Triggering autoload with a variable classname causes truncated autoload param) +--FILE-- +<?php + +$baz = '\\Foo\\Bar\\Baz'; +new $baz(); +function __autoload($class) { + var_dump($class); + require __DIR__ .'/bug46665_autoload.php'; +} + +?> +--EXPECTF-- +%string|unicode%(12) "\Foo\Bar\Baz" diff --git a/Zend/tests/bug46665_autoload.php b/Zend/tests/bug46665_autoload.php new file mode 100644 index 0000000000..092b272964 --- /dev/null +++ b/Zend/tests/bug46665_autoload.php @@ -0,0 +1,5 @@ +<?php + +namespace Foo\Bar; +class Baz { +} |