note 116138 deleted from exception.construct by salathe
| From: | salathe@php.net | Date: | Mon, 17 Nov 2014 15:55:31 +0000 |
| Subject: | note 116138 deleted from exception.construct by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200931@lists.php.net to get a copy of this message | ||
Note Submitter: Yzmir Ramirez
----
If you are getting this PHP error:
Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in __FILE__ on line
__LINE__
then your version of PHP is too old.
$ php --version # Command-line
or in code:
<?php
echo PHP_VERSION;
/* or */
echo phpVersion();
?>
or you can do version comparison using version_compare() like this:
<?php
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
parent::__consruct($message, $code, $previous);
} else {
parent::__construct($message, $code);
}
?>