On 4/27/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
On Thu, April 26, 2007 5:48 am, Marten Lehmann wrote: > Hello, > > I'm trying to include a shared object file with the function dl(). But > I > always get: > > Warning: dl() [function.dl]: Unable to load dynamic library > '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared > object file: No such file or directory in /homepages/xyz/test.php on > line 5 > > But it is definetely there and readable (also executable)! > > I tried to include('/homepages/xyz/util.so') which gives same parsing > errors since this is not php-code, but including works, so it's > actually > readable. > > What is the real error behind it? How can I find out why dynamic > loading > fails? Is it possibly due to different glibc versions? It's possible that util.so itself is fine, but util.so needs *ANOTHER* .so file that *it* cannot find... You may want to check the Apache error log and /var/log/messages to see if they have anything in them. Also, I think dl() is going away in PHP 6, so you may want to re-think this from the get-go...
Yes, if seen it is deprecated, but how could somebody include dynamic library without editing php.ini? I was a little bit shocked when i read i should use php.ini variable instead. I never used it, but when i wanted to, i would only to have it loaded in that script, and not all scripts. Tijnema
-- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php