PHP3: segfaults when loading its config file.
| From: | Stephane ENTEN | Date: | Sat, 29 Jan 2000 22:41:42 +0000 |
| Subject: | PHP3: segfaults when loading its config file. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15039@lists.php.net to get a copy of this message | ||
Hi,
I'm getting a strange problem with PHP compiled as an Apache
shared module.
While loading the module, after an strace (I'm using Linux) I
saw this:
open("./php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/httpd/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) ---
Seems that not finding its config file doesn't make it very happy.
In fact I moved the config file since when it finds:
open("/etc/httpd/php3.ini", O_RDONLY) = 4
ioctl(4, TCGETS, 0xbfffa6a4) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "[PHP_3]\n\n;;;;;;;;;;;;;;;;;;;\n; A"..., 8192) = 8192
read(4, "ode)\n\t\t\t\t\t\t\t\t; Note that this is"..., 8192) = 3496
read(4, "", 4696) = 0
read(4, "", 8192) = 0
ioctl(4, TCGETS, 0xbfffa684) = -1 ENOTTY (Inappropriate ioctl for device)
--- SIGSEGV (Segmentation fault) ---
Why the fsck PHP tries to ioctl() its config file ? :)
--
Stephane ENTEN