cvs: ZendEngine2 /tests bug46665.phpt bug46665_autoload.php

"Felipe Pena" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsfelipe1227694590@cvsserver>
felipe		Wed Nov 26 10:16:30 2008 UTC

  Added files:                 
    /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 {
}



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.