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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Nov 23 10:01:28 2024 UTC