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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.