Bug #60192 [Asn->Csd]: SegFault when Collator not constructed properly

From: Date: Wed, 02 Nov 2011 07:37:23 +0000
Subject: Bug #60192 [Asn->Csd]: SegFault when Collator not constructed properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-164790@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60192&edit=1 ID: 60192 Updated by: fa@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] fa@php.net Automatic comment from SVN on behalf of fa Revision: http://svn.php.net/viewvc/?view=revision&amp;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

« previous php.bugs (#164790) next »