I’ve installed WAMP Server on my computer so that I can develop my website, however I have come to run my existing code which is running on my staging host just fine without any errors.
I’m getting errors such as:
Fatal error: Cannot redeclare session_status() in >C:\wamp\www\uquiz\trunk\sessions\session.php on line 277
I have uncommented the line in the PHP config:
;zend_extension = “c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.0-5.4-vc9-x86_64.dll”
But this hasn’t suppressed the error.
I’m assuming that it’s the ZEND Framework that may have already declared the function session_status()?
If I change the name of the function, the error disappears, but I don’t want to be restricted.
It’s a built-in PHP function as of 5.4.
Rename your function or downgrade to PHP 5.3
http://us.php.net/session-status