note 70239 added to ref.xml
| From: | Rattus at osu1 dot php dot net | Date: | Sun, 08 Oct 2006 03:16:20 +0000 |
| Subject: | note 70239 added to ref.xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118199@lists.php.net to get a copy of this message | ||
The XML Parser posted by "vankata at mikromaxbg dot com" on "28-Feb-2006 10:19"
requires the following fix:
Modify function "characterData($parser, $data)" as follows:
if(trim($data) != '')
{
if (!isset($stack[count($stack)-1]['data']))
$stack[count($stack)-1]['data'] = '';
$stack[count($stack)-1]['data'] .= $data;
}
This fixes the PHP Warning notices when "$stack[count($stack)-1]['data']" is not
yet set and fixes the bug that if "trim($data)" evaluates to "0" then the data
is not added.
----
Server IP: 203.220.0.234
Probable Submitter: 218.215.0.156
----
Manual Page -- http://www.php.net/manual/en/ref.xml.php
Edit -- https://master.php.net/note/edit/70239
Del: integrated -- https://master.php.net/note/delete/70239/integrated
Del: useless -- https://master.php.net/note/delete/70239/useless
Del: bad code -- https://master.php.net/note/delete/70239/bad+code
Del: spam -- https://master.php.net/note/delete/70239/spam
Del: non-english -- https://master.php.net/note/delete/70239/non-english
Del: in docs -- https://master.php.net/note/delete/70239/in+docs
Del: other reasons-- https://master.php.net/note/delete/70239
Reject -- https://master.php.net/note/reject/70239
Search -- https://master.php.net/manage/user-notes.php