NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
php crash using error_reporting and xml under php5


Joined: 07 May 2005
Posts: 3
Reply with quote
Hi,
I ve experienced a crash using phped with php5 and the new dom api
Here is the code
Code:
<?
error_reporting(E_ALL|E_STRICT);
function error0($code,$string,$file,$line)
{
 echo'bad!';
}
set_error_handler('error0');
$page=file_get_contents('http://www.google.com/');
$xml=new DOMDocument;
$xml->loadHTML($page);
?>


the crash occurs when i put a breakpoint in the error handler.
It works when removing the breakpoint.



here is the xp report
what do you think about this crash?
thanks for your very useful ide
markus
View user's profileFind all posts by datzSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Please try with php-5.0.3 and dbg-2.16.20:
http://forum.nusphere.com/sshot/php_dbg.dll-2.16.20-5.0.3.zip


Last edited by dmitri on Fri May 13, 2005 6:31 am; edited 1 time in total
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 May 2005
Posts: 3
Reply with quote
hello ddmitrie Smile

The crash occurs only when there is a breakpoint in the error handler.
I ve put your latest php_dbg.dll in the phped/php5/extension directory.
I do not have the same result than yours for the $http_response_header.
I've got a "302 Found".

The crash is still running.
here a list of the files of the nusphere directory

You can join me thru msn at datz@free.fr.
I can grant you a netmeeting access or vnc one to debug.
MS Visual Studio 2003 is installed on my machine.
Or I can do some JIT debugging dumps or things like that for you.
The bug may deal with french localized version of ms dlls...
thanks a lot ddmitrie
View user's profileFind all posts by datzSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Did you check with dbg-2.16.20 as I suggested ?
TIA,
Dmitri.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 May 2005
Posts: 3
Reply with quote
Yes I did I ve put it ine the php5/extensions dir
View user's profileFind all posts by datzSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Please check phpinfo() output to make sure if you work with dbg-2.16.20
then please confirm if you still get the crash.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
php crash using error_reporting and xml under php5
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic