Hi Ian,

please check your PHP version...

It is worth noting that before PHP 5.2.0 the __toString method was only called 
when it was directly combined with echo() or print(). Since PHP 5.2.0, it is 
called in any string context (e.g. in printf() with %s modifier) but not in 
other types contexts (e.g. with %d modifier). [...]
http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring

__toString will not be called in concatenation-operations prior to PHP 5.2.0.

Best regards

Stefan


-----Ursprüngliche Nachricht-----
Von: Ian Warner [mailto:[email protected]] 
Gesendet: Montag, 16. November 2009 12:28
An: Zend Framework
Betreff: [fw-general] Issues with $this->headScript()

Hi

When I use:
echo $this->headScript() . PHP_EOL;


All that prints out is:
Object id #99

This is a new and unfamiliar server I am deploying on so could be
anything - but any pointed gratefully received

Ian

Reply via email to