On Thu, 26 Feb 2004, John Coggeshall wrote:

> <?php
>
>     $reflect = new Reflection_Class("Object");
>
>     $docs = $reflect->getDocComment();
>     if(!empty($docs)) {
>         echo "Has Docs.\n";
>     }
>
>     if(!empty($reflect->getDocComment())) {
>         echo "Has Docs.\n";
>     }
>
> ?>
>
> [EMAIL PROTECTED] ]$ 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?

empty() can only be used on variables, RTFM: http://nl.php.net/empty
but I do agree that the message is bogus...

Derick

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to