This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| Realised my tweet was unclear: what I meant is: | |
| 1) Close of the socket and context in the child process after forking before creating the child context/socket - you need both bits so that it shuts down, else the context will wait for the socket | |
| 2) Turn off 'persistance' with a flag, else it'll take it out of the global table internal to PHP (which is kept when forking of course). | |
| Hacked in changed below: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Generic SPL class loader | |
| * @license http://opensource.org/licenses/mit-license.php MIT License | |
| * @author Lachlan Donald <lachlan@ljd.cc> | |
| */ | |
| class ClassLoader | |
| { | |
| private $_paths = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * SplClassLoader implementation that implements the technical interoperability | |
| * standards for PHP 5.3 namespaces and class names. | |
| * | |
| * http://groups.google.com/group/php-standards/web/final-proposal | |
| * | |
| * // Example which loads classes for the Doctrine Common package in the | |
| * // Doctrine\Common namespace. |