[turba] How to return a PEAR_Error in PHP?

Chuck Hagenbuch chuck at horde.org
Thu Nov 6 08:50:07 PST 2003


Quoting John Dalbec <jpdalbec at ysu.edu>:

> I'm trying to convert the LDAP driver search() function in Turba to return a
> PEAR_Error if there is a problem with the search.  No matter what I do the
> PEAR::isError function returns false on the returned function value.  What am
> I missing?  The php.net documentation is giving me a headache and I'm not
> finding an answer.  I thought maybe I needed to pass a reference instead of a
> copy, but that's not helping.  My environment is Red Hat Linux 7.3, PHP
> 4.1.2-7.3.6 RPM. Is this a PHP bug in that version?

That's an old and possibly buggy PHP version, but we really can't tell you since
you didn't show us the code in question - we have no idea what you may or may
not be doing wrong.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I am not that interested in green food." - Average Joe


More information about the turba mailing list