note 37022 added to function.xml-parser-free
| From: | (George Webb) | Date: | Thu, 30 Oct 2003 23:56:05 +0000 |
| Subject: | note 37022 added to function.xml-parser-free | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59549@lists.php.net to get a copy of this message | ||
I found that with PHP 4.3.4RC1, if you don't call xml_parser_free() before your script ends,
some sort of ugliness occurs with the webserver; i.e. the HTTP connection is closed. (The apache
error_log says "exit signal Segmentation fault (11)".)
Usually PHP tends to clean up connections you don't explicitly close (e.g. database
connections), but in this case apparently it doesn't.
Some web browsers (MSIE for one) do not actually show this problem, so you may not actually notice
it. Opera 7.11 does show it, which is how I discovered it.
So don't forget to call xml_parser_free() ... always!
----
Manual Page -- http://www.php.net/manual/en/function.xml-parser-free.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37022
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37022&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37022&report=yes
Search -- http://master.php.net/manage/user-notes.php