|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-02-24 08:34 UTC] cataphract@php.net
[2012-02-24 08:34 UTC] cataphract@php.net
-Status: Open
+Status: Feedback
[2012-02-24 10:01 UTC] cataphract@php.net
[2012-02-24 10:01 UTC] cataphract@php.net
-Status: Feedback
+Status: Closed
-Assigned To:
+Assigned To: cataphract
[2012-02-24 10:01 UTC] cataphract@php.net
[2012-02-24 10:37 UTC] pajoye@php.net
[2012-02-24 10:37 UTC] pajoye@php.net
-Status: Closed
+Status: Assigned
[2012-03-07 07:38 UTC] stas@php.net
[2012-03-07 07:45 UTC] stas@php.net
-Status: Assigned
+Status: Closed
[2012-03-07 07:45 UTC] stas@php.net
[2012-04-18 09:46 UTC] laruence@php.net
[2012-07-24 23:37 UTC] rasmus@php.net
[2013-11-17 09:33 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 17:00:01 2025 UTC |
Description: ------------ There is currently no way to detect error in finfo::__construct() other than defining own set_error_handler(). It should throw an exception in case of an error. new finfo() always creates the object but this object is unusable if constructor doesn't succeed. Test script: --------------- $finfo = null; try { $finfo = new finfo(1, '', false); } catch (Exception $e) { echo "Error creating finfo.\n"; } var_dump($finfo); Expected result: ---------------- Error creating finfo. NULL Actual result: -------------- object(finfo)#1 (0) { }