note 32219 deleted from ref.xml by danbrown
| From: | danbrown@php.net | Date: | Wed, 03 Mar 2010 18:44:11 +0000 |
| Subject: | note 32219 deleted from ref.xml by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166600@lists.php.net to get a copy of this message | ||
Note Submitter: panania at 3ringwebs dot com
----
The above example doesn't work when you're parsing a string being returned from a curl
operation (why I don't know!) I kept getting undefined offsets at the highest element number in
both the start and end element functions. It wasn't the string itself I know, because I
substringed it to death with the same results. But I fixed the problem by adding these lines of
code...
function defaultHandler($parser, $name) {
global $depth;
@ $depth[$parser]--;
}
xml_set_default_handler($xml_parser, "defaultHandler");
Hope this helps 8-}