svn: /pear2/Pyrus/trunk/ pyrus.phar stub.php

From: Date: Tue, 10 Nov 2009 17:07:07 +0000
Subject: svn: /pear2/Pyrus/trunk/ pyrus.phar stub.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9023@lists.php.net to get a copy of this message
saltybeagle Tue, 10 Nov 2009 17:07:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290478 Log: Updat pyrus.phar with the latest code including PEAR2_HTTP_Request namespace changes. Simplify stub autoload function. Changed paths: U pear2/Pyrus/trunk/pyrus.phar U pear2/Pyrus/trunk/stub.php Modified: pear2/Pyrus/trunk/pyrus.phar =================================================================== (Binary files differ) Modified: pear2/Pyrus/trunk/stub.php =================================================================== --- pear2/Pyrus/trunk/stub.php 2009-11-10 16:52:59 UTC (rev 290477) +++ pear2/Pyrus/trunk/stub.php 2009-11-10 17:07:07 UTC (rev 290478) @@ -22,9 +22,9 @@ } function pyrus_autoload($class) { - $class = str_replace('_', '\\', $class); - if (file_exists('phar://' . __FILE__ . '/PEAR2_Pyrus-@PACKAGE_VERSION@/php/' . implode('/', explode('\\', $class)) . '.php')) { - include 'phar://' . __FILE__ . '/PEAR2_Pyrus-@PACKAGE_VERSION@/php/' . implode('/', explode('\\', $class)) . '.php'; + $class = str_replace(array('_','\\'), '/', $class); + if (file_exists('phar://' . __FILE__ . '/PEAR2_Pyrus-@PACKAGE_VERSION@/php/' . $class . '.php')) { + include 'phar://' . __FILE__ . '/PEAR2_Pyrus-@PACKAGE_VERSION@/php/' . $class . '.php'; } } spl_autoload_register("pyrus_autoload");

« previous php.pear.core (#9023) next »