php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72639 Segfault when instantiating class that extends IntlCalendar and adds a property
Submitted: 2016-07-21 05:59 UTC Modified: -
From: ezzatron at gmail dot com Assigned:
Status: Closed Package: intl (PECL)
PHP Version: 7.1.0alpha3 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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ezzatron at gmail dot com
New email:
PHP Version: OS:

 

 [2016-07-21 05:59 UTC] ezzatron at gmail dot com
Description:
------------
Attempting to instantiate a class that:

- extends IntlCalendar or IntlGregorianCalendar; AND
- adds a property

will result in a segfault under PHP 7.

See https://3v4l.org/r3eDR

Test script:
---------------
class A extends IntlCalendar {
    public function __construct() {}
    private $a;
}
var_dump(new A());

Expected result:
----------------
object(A)#1 (1) {
  ["valid"]=>
  bool(false)
}

Actual result:
--------------
(Process exited with code 139.)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-21 06:26 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4a643e5e1362951362b5eb4a30af0d5068ca6686
Log: Fixed bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
 [2016-07-21 06:26 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-10-17 10:10 UTC] bwoebi@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4a643e5e1362951362b5eb4a30af0d5068ca6686
Log: Fixed bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC