From:             marques at displague dot com
Operating system: Ubuntu 
PHP version:      5.2.5
PHP Bug Type:     *General Issues
Bug description:  dl() tries to load *garbage* in some states

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 bug report at http://bugs.php.net/?id=44490&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44490&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44490&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44490&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44490&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44490&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44490&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44490&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44490&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44490&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44490&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44490&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44490&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44490&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44490&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44490&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44490&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44490&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44490&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44490&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44490&r=mysqlcfg

Reply via email to