Edit report at https://bugs.php.net/bug.php?id=60192&edit=1

 ID:                 60192
 Updated by:         f...@php.net
 Reported by:        rodney dot rehm at medialize dot de
 Summary:            SegFault when Collator not constructed properly
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            intl
 Operating System:   Mac OS X 10.7.2
 PHP Version:        5.3.8
 Assigned To:        fa
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2011-11-02 07:36:46] f...@php.net

Automatic comment from SVN on behalf of fa
Revision: http://svn.php.net/viewvc/?view=revision&revision=318672
Log: Fix #60192 SegFault when Collator not constructed properly

------------------------------------------------------------------------
[2011-11-01 15:28:51] rodney dot rehm at medialize dot de

Description:
------------
If Collator is extended, but parent::__construct() not invoked, any call to 
sort() will end in a segmentation fault.

Test script:
---------------
<?php

class Collator2 extends Collator {
    public function __construct() {
        // ommitting parent::__construct($someLocale);
    }
}

$c = new Collator2();
$a = array('a', 'b');
$c->sort($a);

Expected result:
----------------
Some kind of Exception, E_ERROR or something. Anything but a SegFault.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60192&edit=1

Reply via email to