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
 [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: Thu Nov 21 11:01:29 2024 UTC