svn: /pear2/sandbox/SimpleChannelServer/trunk/ pearscs.phar stub.php

From: Date: Tue, 10 Nov 2009 17:12:53 +0000
Subject: svn: /pear2/sandbox/SimpleChannelServer/trunk/ pearscs.phar stub.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9024@lists.php.net to get a copy of this message
saltybeagle Tue, 10 Nov 2009 17:12:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290479 Log: Update pearscs.phar with latest category changes, new categorize command. Simplify autoload in the phar stub. Changed paths: U pear2/sandbox/SimpleChannelServer/trunk/pearscs.phar U pear2/sandbox/SimpleChannelServer/trunk/stub.php Modified: pear2/sandbox/SimpleChannelServer/trunk/pearscs.phar =================================================================== (Binary files differ) Modified: pear2/sandbox/SimpleChannelServer/trunk/stub.php =================================================================== --- pear2/sandbox/SimpleChannelServer/trunk/stub.php 2009-11-10 17:07:07 UTC (rev 290478) +++ pear2/sandbox/SimpleChannelServer/trunk/stub.php 2009-11-10 17:12:53 UTC (rev 290479) @@ -14,11 +14,11 @@ } function pyrus_autoload($class) { - $class = str_replace('_', '\\', $class); + $class = str_replace(array('_','\\'), '/', $class); if (file_exists('phar://' . __FILE__ . '/PEAR2_SimpleChannelServer-@PACKAGE_VERSION@/php/' . - implode('/', explode('\\', $class)) . '.php')) { + $class . '.php')) { include 'phar://' . __FILE__ . '/PEAR2_SimpleChannelServer-@PACKAGE_VERSION@/php/' . - implode('/', explode('\\', $class)) . '.php'; + $class . '.php'; } } spl_autoload_register("pyrus_autoload");

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