|
|
@@ -214,8 +214,8 @@ set_include_path(implode(PATH_SEPARATOR, $paths));
|
|
|
|
|
|
<programlisting role="shell"><![CDATA[
|
|
|
% cd path/to/ZendFramework/library
|
|
|
-% find . -name '*.php' -print0 | xargs -0 \
|
|
|
- sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
|
|
|
+% find . -name '*.php' -not -wholename '*/Loader/Autoloader.php -print0 | \
|
|
|
+ xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
|
|
|
]]></programlisting>
|
|
|
|
|
|
<para>
|
|
|
@@ -235,8 +235,8 @@ set_include_path(implode(PATH_SEPARATOR, $paths));
|
|
|
</para>
|
|
|
|
|
|
<programlisting role="php"><![CDATA[
|
|
|
-require_once 'Zend/Loader.php'; // one require_once is still necessary
|
|
|
-Zend_Loader::registerAutoload();
|
|
|
+require_once 'Zend/Loader/Autoloader.php';
|
|
|
+Zend_Loader_Autoloader::getInstance();
|
|
|
]]></programlisting>
|
|
|
</sect3>
|
|
|
</sect2>
|