Note that there are some explanatory texts on larger screens.

plurals
  1. PORunkit : does not work on a linux server
    text
    copied!<p>I have a problem with PECL::Runkit with this little example</p> <pre><code>index.php contain &lt;?php runkit_import('a.php'); runkit_import('b.php'); Doublon::get(); </code></pre> <p>a.php et b.php each contain the same code <pre><code>class Doublon { static function get() { echo "class " . __FILE__; } } </code></pre> <p>On my PC (Windows XP, Wampserver 2, php 5.2.9-2, runkit DLL bundled with Wamp) it work and index.php show</p> <pre><code>class C:\wamp2\www\utilitaires\essais\runkit\b.php </code></pre> <p>On my Linux CentOS 5 server, PHP 5.2.10, Runkit compiled by hand</p> <pre><code>Warning: runkit_import() [function.runkit-import]: class doublon not found in /shares/public/cedric/test/index.php on line 2 Warning: runkit_import() [function.runkit-import]: Cannot redeclare class doublon in /shares/public/cedric/test/index.php on line 2 Warning: runkit_import() [function.runkit-import]: class doublon not found in /shares/public/cedric/test/index.php on line 3 Warning: runkit_import() [function.runkit-import]: Cannot redeclare class doublon in /shares/public/cedric/test/index.php on line 3 Fatal error: Class 'Doublon' not found in /shares/public/cedric/test/index.php on line 4 </code></pre> <p>One problem : runkit's make test give me 100% of tests failed, but I still don't know why. The runkit version from the linux distribution just make crash Apache : <a href="https://stackoverflow.com/questions/1097105/php-startup-timezone-database-is-corrupt">PHP Startup: Timezone database is corrupt</a></p> <p>I dropped xdebug, return to php 5.2.9, but the errors are the same</p> <p>Thanks in advance, Cédric</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload