Ben bu küçük örnekle PECL :: runkit ile ilgili bir sorun var
index.php contain <?php
runkit_import('a.php');
runkit_import('b.php');
Doublon::get();
a.php et b.php each contain the same code
class Doublon
{
static function get() { echo "class " . __FILE__; }
}
On my PC (Windows XP, Wampserver 2, php 5.2.9-2, runkit DLL bundled with Wamp) it work and index.php show
class C:\wamp2\www\utilitaires\essais\runkit\b.php
Benim Linux CentOS 5 sunucu üzerinde, PHP 5.2.10, runkit elle derlenen
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
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 : http://stackoverflow.com/questions/1097105/php-startup-timezone-database-is-corrupt
Ben php 5.2.9 dönmek, XDebug düştü, ama hatalar aynı
Önceden, Cédric Teşekkür