Jump to content

Fatal error: Cannot use object of type PEAR_Error as array


bighippo

Recommended Posts

hi! please help me.

 

im USING PEAR serialize class.

when ever i pass an integer value in array this error massages comes out ::

 

Fatal error: Cannot use object of type PEAR_Error as array

 

i need the integer value for mathematical operations. ive already used typecast,intval,to_number.. etc... it didnt work. any suggestion / solution. thanks.

IDK anything about what you are trying to do but I cna explain the error

 

Your PHP is using PEAR *unapcked* and apparently PEAR_Error is not an array.

For some reason you are trying to use it as an array, but frankly its not one.

 

This can also happen if the script tries to use it as an array if an error happens in PEAR.

IDK anything about what you are trying to do but I cna explain the error

 

Your PHP is using PEAR *unapcked* and apparently PEAR_Error is not an array.

For some reason you are trying to use it as an array, but frankly its not one.

 

This can also happen if the script tries to use it as an array if an error happens in PEAR.

 

im trying to serialized the posted data. then this serialized data are sent to my api which will check/process it. during the process I need the integer data for my validation check in parameter. if paramters are correct it will return a boolean(true).

 

i dont fully understand pear. im not using PEAR:ERROR as an array.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.