ID: 24006
Updated by: [EMAIL PROTECTED]
Reported By: mikemc-phpbug at contactdesigns dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux 2.4.x
PHP Version: 4.3.2
New Comment:
I can not reproduce this, I only get this:
Fatal error: CDS_Error_Handler_Init() - Missing parameters in
/home/jani/t.php on line 62
(I just took that handler.phps and pasted it to a file and added the
CDS_Error_Handler_Init(); line)
Could you please try creating a SHORT example script
which can be just copied and run..?
And/Or generate a GDB backtrace of this crash..
Previous Comments:
------------------------------------------------------------------------
[2003-06-03 23:55:42] mikemc-phpbug at contactdesigns dot com
I have code that ran fine under 4.3.1 compiled with Apache like so:
'./configure' '--with-openssl' '--enable-memory-limit'
'--with-mysql=/usr/local/mysql' '--with-zlib'
'--with-apache=../apache_1.3.27' '--enable-inline-optimization'
'--with-curl=/usr/local' '--with-mcrypt=/usr/local'
It was compiled the same exact way with 4.3.2 except with a newer
version of curl.
This same code now causes a segmentation fault under 4.3.2:
[Tue Jun 3 21:25:51 2003] [notice] child pid 12107 exit signal
Segmentation fault (11)
The offending code is related to a user defined error handler. My
current workaround: remove the error handling code. I have isolated
the problem to a single file and a function within that file. When I
comment out the code that loads this file and calls that function, the
segfaults stop and the code runs as normal:
//include_once('lib/Error/Handler.php');
//CDS_Error_Handler_Init();
Furthermore, I have to call the function - loading the file alone does
not cause the problem. This error handler is a very old version of our
current one which has changed significantly and has no problems in
4.3.2. You can find the code here:
http://caffeine.contactdesigns.com/~jolt/Handler.phps
I hope this helps - I am in no way put in a bind because of this bug -
it is old code and does nothing for us now. Just hoping to help PHP
out in any way possible. I tried out RC1 on the developemntal
servers, but as it is sometimes, you don't catch the bug until you go
to production.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24006&edit=1