Re: PEAR DB version 1.7.6 with php version 5.1.1
| From: | bertrand Gugger | Date: | Fri, 17 Feb 2006 09:55:14 +0000 |
| Subject: | Re: PEAR DB version 1.7.6 with php version 5.1.1 | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23026@lists.php.net to get a copy of this message | ||
Heinz Knoche wrote:
Thanks a lot for the hint, but I do not feel that there is a problem with the error reporting level. My error reporting setting is E_ALL. What I somehow do not get is why the documentation and code comments of DB.php are telling me to call a method (e.g. connect(), isError(), ... )statically which is not declared to be static in the code. I'd like to understand this... As said, DB is intented to be php4 and php5 (not E_STRICT) compatible:The static declaration for function is only existing in php5. ~/test/static.php: <?php class Foo { static function blah() { } } [bertrand@ancilla Wiki]$ php ~/test/static.php PHP Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/bertrand/test/static.php on line 3 Content-type: text/html X-Powered-By: PHP/4.3.11 <br /> <b>Parse error</b>: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/bertrand/test/static.php</b> on line <b>3</b><br /> [bertrand@ancilla Wiki]$ php5 ~/test/static.php X-Powered-By: PHP/5.1.2-dev Content-type: text/html [bertrand@ancilla Wiki]$ You see ?