Bogus Error Message?
| From: | John Coggeshall | Date: | Fri, 27 Feb 2004 04:19:14 +0000 |
| Subject: | Bogus Error Message? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-8193@lists.php.net to get a copy of this message | ||
<?php
$reflect = new Reflection_Class("Object");
$docs = $reflect->getDocComment();
if(!empty($docs)) {
echo "Has Docs.\n";
}
if(!empty($reflect->getDocComment())) {
echo "Has Docs.\n";
}
?>
[john@coogle ]$ php test.php
Fatal error: Can't use method return value in write context in test.php
on line 10
Since when is empty() writing anything? Or is there something else here
that I'm not seeing?
John
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www.coggeshall.org/
The PHP Developer's Handbook http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-