php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #84 php3_extension_dir not working
Submitted: 1998-02-19 12:16 UTC Modified: 1998-02-21 12:45 UTC
From: gorgo at caesar dot elte dot hu Assigned: rasmus (profile)
Status: Closed Package: Other
PHP Version: 3.0b4 OS: linux
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: gorgo at caesar dot elte dot hu
New email:
PHP Version: OS:

 

 [1998-02-19 12:16 UTC] gorgo at caesar dot elte dot hu
I have a pgsql.so compiled to use with the apache module
version of php3. It works correctly if I dl() it with
the full path. It doesnt work if I set
php3_extension_dir /usr/lib/php3/apache
in httpd.conf, and try to dl() it with only the filename.
Strace shows that pgsql.so is only searched in /lib and
/usr/lib, but not in /usr/lib/php3/apache:

read(20, "<?\n\n\tdl(\"pgsql.so\");\n\tdl("..., 4096) = 275
read(20, "", 4096)                      = 0
open("/lib/pgsql.so", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("/usr/lib/pgsql.so", O_RDONLY)     = -1 ENOENT (No such file or directory)
umask(022)                              = 022

Greg

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-21 12:45 UTC] rasmus
There was a problem in the Apache module merge_dir function which has been fixed in beta5.  Please
grab beta5 when it is available and try this again.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC