ID:               44490
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marques at displague dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: Ubuntu
 PHP Version:      5.2.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




Previous Comments:
------------------------------------------------------------------------

[2008-03-20 18:12:44] marques at displague dot com

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¿&#65533;)' -
/usr/lib/php5/20060613+lfs/El¿&#65533;): cannot open shared object file:
No such file or directory


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44490&edit=1

Reply via email to