Re: cvs: pear-core /PEAR PackageFile.php
| From: | Michael Wallner | Date: | Thu, 21 Jul 2005 07:30:07 +0000 |
| Subject: | Re: cvs: pear-core /PEAR PackageFile.php | ||
| References: | 1 2 | Groups: | php.pear.cvs php.pear.core |
| Request: | Send a blank email to pear-cvs+get-33188@lists.php.net to get a copy of this message | ||
Hi Alan Knowles, you wrote:
>> }
>> } else {
>>- return PEAR::raiseError("Cannot open '$info' for parsing");
>>+ $info = PEAR::raiseError("Cannot open '$info' for
>>parsing");
>>+ return $info;
>
>
> AFAIR
> return $err = PEAR::raiseError("Cannot open '$info' for parsing");
>
> should work and is a little more compact..
I guess it will work, but it won't do what it's expected to
do, i.e. won't return a reference, because anything more
than just "$var" is an expression.
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc