From:             franssen dot roland at gmail dot com
Operating system: Ubuntu
PHP version:      5.4.4
Package:          Apache2 related
Bug Type:         Bug
Bug description:Apache crashes with subclass of \MessageFormatter

Description:
------------
I get an HTTP Aborted status code when accessing a property defined in a
subclass of \MessageFormatter. It's really weird behavior.. please see the
test scripts.

Test script:
---------------
<?php
namespace Foo;
class Test1 extends \MessageFormatter { }
class Test2 extends \MessageFormatter { public $foo = 'foo'; }
class MessageFormatter extends \MessageFormatter {
    //public $foo = 'foo';
}
$test1 = new Test1('en_US', '{0}');
$test2 = new Test2('en_US', '{0}');

// CASE 1
var_dump($test1);

// CASE 2
var_dump($test2);

// CASE 3
var_dump($test1->getPattern(), $test2->getPattern());

// CASE 4
var_dump($test2->foo);

Expected result:
----------------
// CASE 1
object(Foo\Test1)#1 (0) { } 

// CASE 2
object(Foo\Test2)#1 (0) { } 

// CASE 3
string(3) "{0}" string(3) "{0}" 

// CASE 4
string(3) "foo"

Actual result:
--------------
// CASE 1
object(Foo\Test1)#1 (0) { } 

// CASE 2
HTTP Aborted (Connection was reinitialized)

// CASE 3
string(3) "{0}" string(3) "{0}" 

// CASE 4
HTTP Aborted (Connection was reinitialized)

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62564&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62564&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62564&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62564&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62564&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62564&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62564&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62564&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62564&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62564&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62564&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62564&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62564&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62564&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62564&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62564&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62564&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62564&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62564&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62564&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62564&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62564&r=mysqlcfg

Reply via email to