|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-25 13:35 UTC] jani@php.net
[2008-04-02 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 12:00:01 2025 UTC |
Description: ------------ I can't reproduce this 100%, but something in the state of PHP causes me to reproducably encounter severe issues when calling dl(). Whether I supply dl() with a string or a variable with the name of a module to load, I get a warning that dl() could not load the module - except the module name is corrupt (which is also the reason it could not load an otherwise accessible module). Reproduce code: --------------- $driver = 'pdo_'.$config['driver'].'.so'; Debug::output('Loading driver: '.$driver,5); dl('pdo_mysql.so'); // causes the problem - tries to load garbage //dl(& $driver); // Also causes the problem (different garbage) //dl($driver); // Also causes the problem (different garbage #2) Expected result: ---------------- Loading driver: pdo_mysql.so Actual result: -------------- Loading driver: pdo_mysql.so WARNING: dl() [<a href='function.dl'>function.dl</a>]: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/El?�)' - /usr/lib/php5/20060613+lfs/El?�): cannot open shared object file: No such file or directory