ID: 48202 Updated by: paj...@php.net Reported By: koenk82 at gmail dot com -Status: Open +Status: Assigned Bug Type: XML Writer Operating System: Ubuntu 9.04 PHP Version: 5.3CVS-2009-05-09 (CVS) -Assigned To: +Assigned To: pajoye New Comment:
reproduced during the testfest 2009/utrecht, assigning to me. Previous Comments: ------------------------------------------------------------------------ [2009-05-09 12:40:13] koenk82 at gmail dot com Description: ------------ If you supply a non-existing file to xmlwriter_open_uri it produces an Out of memory error. Reproduce code: --------------- <?php var_dump(xmlwriter_open_uri('foo/bar.tmp')); ?> Expected result: ---------------- Warning: xmlwriter_open_uri(%s): failed to open stream: No such file or directory in %s on line %d bool(false) Actual result: -------------- Warning: xmlwriter_open_uri(/home/koen/Bureaublad/php5/foo/bar.tmp): failed to open stream: No such file or directory in /home/koen/Bureaublad/mytests/xmlwriter_open_uri_error_003.php on line 2 Warning: xmlwriter_open_uri(): xmlNewTextWriterFilename : out of memory! in /home/koen/Bureaublad/mytests/xmlwriter_open_uri_error_003.php on line 2 bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48202&edit=1