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:
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2017 The PHP Group
All rights reserved.
Last updated: Fri Apr 28 23:01:35 2017 UTC