php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70785 Infinite loop due to exception during identical comparison
Submitted: 2015-10-25 16:05 UTC Modified: -
From: nikic@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.0RC5 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nikic@php.net
New email:
PHP Version: OS:

 

 [2015-10-25 16:05 UTC] nikic@php.net
Description:
------------
The condition for whether === can generate an exception doesn't account for undef variable warning during CV fetch.

<?php

set_error_handler(function($no, $msg) {
    throw new Exception($msg);
});

if ($a === null) {
    throw Exception('Null');
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-26 03:16 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5767f2b64852fbf64fd5cf8ad3a017aa5057261a
Log: Fixed bug #70785 (Infinite loop due to exception during identical comparison)
 [2015-10-26 03:16 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-10-27 10:51 UTC] ab@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f5431a648310e8496891f9f729f5291b9df5d3eb
Log: Fixed bug #70785 (Infinite loop due to exception during identical comparison)
 [2016-07-20 11:35 UTC] davey@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5767f2b64852fbf64fd5cf8ad3a017aa5057261a
Log: Fixed bug #70785 (Infinite loop due to exception during identical comparison)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 07:01:29 2024 UTC