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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 16 13:01:30 2024 UTC