[FX.php List] Error object propagation

Brion Vibber brion at pobox.com
Mon Sep 20 18:49:14 MDT 2004


I noticed an interesting error message today:
Notice:  Object to string conversion in /usr/local/lib/php/FX/FX.php on 
line 863

The problem seems to be that ExecuteQuery() doesn't check 
RetrieveFMData()'s return value before feeding it to an XML parser.

It probably should return the error object immediately, something like 
this:
                 ...
                 $data = $this->RetrieveFMData($action);
                 if (FX::isError($data)) {
                     return $data;
                 }

                 $xml_parser = xml_parser_create("UTF-8");
                 ...

-- brion vibber (brion @ pobox.com / vibber @ usc.edu)
www.scec.org -- Southern California Earthquake Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20040920/518f8a1c/PGP.bin


More information about the FX.php_List mailing list