Bug #55013 [Opn->Csd]: domDocument vs error_get_last()

From: Date: Fri, 06 Dec 2013 07:27:25 +0000
Subject: Bug #55013 [Opn->Csd]: domDocument vs error_get_last()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183166@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55013&edit=1

 ID:                 55013
 Updated by:         mike@php.net
 Reported by:        finonimus at hotmail dot com
 Summary:            domDocument vs error_get_last()
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            *General Issues
 Operating System:   windows
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        mike
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php




Previous Comments:
------------------------------------------------------------------------
[2011-06-09 12:45:42] finonimus at hotmail dot com

Description:
------------
Why new domDocument reset my error?

Test script:
---------------
<?php

print_r('before<br>');
trigger_error('error');
print_r(error_get_last());
$xml = new DOMDocument('1.0', 'UTF-8');

echo '<br><br><br>';

print_r('after<br>');
trigger_error('error');
$xml = new DOMDocument('1.0', 'UTF-8');
print_r(error_get_last());

?>

Expected result:
----------------
see both errors

Actual result:
--------------
only see before


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55013&edit=1


Thread (2 messages)

« previous php.bugs (#183166) next »