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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Thu Dec 26 16:01:31 2024 UTC