php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44490 dl() tries to load *garbage* in some states
Submitted: 2008-03-20 18:12 UTC Modified: 2008-04-02 01:00 UTC
From: marques at displague dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2.5 OS: Ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marques at displague dot com
New email:
PHP Version: OS:

 

 [2008-03-20 18:12 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC