Note that there are some explanatory texts on larger screens.

plurals
  1. POphp5 magic function __toString($param =null ) can not take args
    text
    copied!<p>i used to have a function defined like this (that is working fine under ubuntu 9.10):</p> <pre><code>public function __toString( $surNameFirst = false) { if ($this-&gt;givenName . $this-&gt;surname == '') return null; else ....... } </code></pre> <p>after i have updated my machine to ubuntu 10.04( and php version Version: 5.3.2-1ubuntu4.2 ) my app starts to show an error like this one ==></p> <blockquote> <p>Fatal error: Method Application_Model_Person::__tostring() cannot take arguments in /home/speshu/Development/where/application/models/Person.php on line 39</p> </blockquote> <pre><code>Call Stack: 0.0001 616576 1. {main}() /home/speshu/Development/where/public/index.php:0 0.0294 1008248 2. Zend_Application-&gt;bootstrap() /home/speshu/Development/where/public/index.php:35 0.0294 1008328 3. Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap() /usr/local/lib/ZendFramework-1.10.0/library/Zend/Application.php:355 0.0294 1008328 4. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap() /usr/local/lib/ZendFramework-1.10.0/library/Zend/Application/Bootstrap/BootstrapAbstract.php:582 0.0387 1991416 5. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource() /usr/local/lib/ZendFramework-1.10.0/library/Zend/Application/Bootstrap/BootstrapAbstract.php:618 0.0387 1991776 6. Bootstrap-&gt;_initDoctrineCLI() /usr/local/lib/ZendFramework-1.10.0/library/Zend/Application/Bootstrap/BootstrapAbstract.php:665 0.0387 1991856 7. Bootstrap-&gt;_initDoctrine() /home/speshu/Development/where/application/Bootstrap.php:66 0.0406 2245200 8. Doctrine_Core::loadModels() /home/speshu/Development/where/application/Bootstrap.php:93 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload