Edit report at https://bugs.php.net/bug.php?id=61173&edit=1
ID: 61173 Updated by: s...@php.net Reported by: vr...@php.net Summary: Unable to detect error from finfo constructor -Status: Assigned +Status: Closed Type: Bug Package: Filesystem function related Operating System: Irrelevant PHP Version: 5.4.0RC8 Assigned To: cataphract Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-03-07 07:38:49] s...@php.net Automatic comment from SVN on behalf of stas Revision: http://svn.php.net/viewvc/?view=revision&revision=323985 Log: MFH: Fixed bug #61173 (Unable to detect error from finfo constructor). ------------------------------------------------------------------------ [2012-02-24 10:37:56] paj...@php.net Please do not close bug when the fix has not been applied to 5.4, so we have a way to do not forget it as soon as 5.4-final is out. Cheers, ------------------------------------------------------------------------ [2012-02-24 10:01:50] cataphr...@php.net I've fixed it with the documented behavior. ------------------------------------------------------------------------ [2012-02-24 10:01:34] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revision&revision=323472 Log: - Fixed bug #61173 (Unable to detect error from finfo constructor). - Tidied up NEWS ------------------------------------------------------------------------ [2012-02-24 08:34:49] cataphr...@php.net The manual suggests new should give NULL in case of error: http://php.net/finfo_open . Why do you expect the exception? In any case, there's of course a bug because new is giving an object. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61173 -- Edit this bug report at https://bugs.php.net/bug.php?id=61173&edit=1