Re: libxml_set_streams_context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 17, 2005 11:12 pm, Bill Hoffman said:
>
>
> On May 17, 2005, at 10:24 PM, Richard Lynch wrote:
>
>> I don't know much about that fancy new stream stuff, or the XML
>> crap, but
>> you've got zero (0) lines of code in there to do anything useful
>> when the
>> functions fail.
>
> no functions fail.

If none of them failed, your script would work :-)

> what I'm expecting is that with libxml_set_streams_context(), I've

I'm betting most of these functions do *NOT* print an error message for
you when they fail.

*YOU* have check their return value to see if it's 'false' or -1 or 0 and,
if so, *YOU* have to call another function to get the error message and
error code.

This is what I am suggesting is missing big-time in your code.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux