cvs: ZendEngine2(PHP_5_3) /tests bug46665.phpt bug46665_autoload.php

[email protected] ("Felipe Pena")
Newsgroups php.zend-engine.cvs
Message-ID <cvsfelipe1227694621@cvsserver>
felipe		Wed Nov 26 10:17:01 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /ZendEngine2/tests	bug46665.phpt bug46665_autoload.php 
  Log:
  - New test
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug46665.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug46665.phpt
+++ ZendEngine2/tests/bug46665.phpt
--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"

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug46665_autoload.php?view=markup&rev=1.1
Index: ZendEngine2/tests/bug46665_autoload.php
+++ ZendEngine2/tests/bug46665_autoload.php
<?php

namespace Foo\Bar;
class Baz {
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.