note 116138 added to exception.construct

From: Date: Wed, 12 Nov 2014 23:43:37 +0000
Subject: note 116138 added to exception.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-200900@lists.php.net to get a copy of this message
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); } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 207.7.104.10 ---- Manual Page -- http://php.net/manual/en/exception.construct.php Edit -- https://master.php.net/note/edit/116138 Del: integrated -- https://master.php.net/note/delete/116138/integrated Del: useless -- https://master.php.net/note/delete/116138/useless Del: bad code -- https://master.php.net/note/delete/116138/bad+code Del: spam -- https://master.php.net/note/delete/116138/spam Del: non-english -- https://master.php.net/note/delete/116138/non-english Del: in docs -- https://master.php.net/note/delete/116138/in+docs Del: other reasons-- https://master.php.net/note/delete/116138 Reject -- https://master.php.net/note/reject/116138 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200900) next »