Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #60192 (SegFault when Collator not constructed properly) --EXTENSIONS-- intl ..

Decoded Output download

--TEST--
Bug #60192 (SegFault when Collator not constructed properly)
--EXTENSIONS--
intl
--FILE--
<?php
class Collator2 extends Collator{
    public function __construct() {
        // omitting parent::__construct($someLocale);
    }
}

$c = new Collator2();
$a = $c->compare('h', 'H');
?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
#0 %s(%d): Collator->compare('h', 'H')
#1 {main}
  thrown in %s on line %d

Did this file decode correctly?

Original Code

--TEST--
Bug #60192 (SegFault when Collator not constructed properly)
--EXTENSIONS--
intl
--FILE--
<?php
class Collator2 extends Collator{
    public function __construct() {
        // omitting parent::__construct($someLocale);
    }
}

$c = new Collator2();
$a = $c->compare('h', 'H');
?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
#0 %s(%d): Collator->compare('h', 'H')
#1 {main}
  thrown in %s on line %d

Function Calls

None

Variables

None

Stats

MD5 5f388589f7b709abd2c79b39f50f59fb
Eval Count 0
Decode Time 119 ms