Bug #67393 [Opn]: Internal server error with DIRECTORY_SEPARATOR

From: Date: Sat, 07 Jun 2014 14:45:16 +0000
Subject: Bug #67393 [Opn]: Internal server error with DIRECTORY_SEPARATOR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186094@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67393&edit=1

 ID:                 67393
 Updated by:         tyrael@php.net
 Reported by:        sherif dot onion at gmail dot com
 Summary:            Internal server error with DIRECTORY_SEPARATOR
 Status:             Open
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Debian Linux
 PHP Version:        5.6.0beta4
 Block user comment: N
 Private report:     N

 New Comment:

I can't reproduce the issue, does it also happen when including the test script from cli, or
only through the fastcgi/fpm sapi? (albeit I have no idea how could this be affected by the SAPI).


Previous Comments:
------------------------------------------------------------------------
[2014-06-06 14:52:05] sherif dot onion at gmail dot com

Description:
------------
A class that has DIRECTORY_SEPARATOR listed in a declared array causes internal server error.

Actually version 5.6.0beta3 (no option in drop down for this - but cannot find similar issue
reported/fixed, so assume still present in 5.6.0beta4.



Test script:
---------------
<?php
class e {
        protected $options = array(
                'separator'       => DIRECTORY_SEPARATOR
        );
}




Actual result:
--------------
The sample code will always produce an internal server error for me:
(Just including the file with this code in is enough).

Here's what the log looks like: 
[Fri Jun 06 15:30:54.040993 2014] [fcgid:warn] [pid 19647] (104)Connection reset by peer: [client
x.x.x.x] mod_fcgid: error reading data from FastCGI server
[Fri Jun 06 15:30:54.041048 2014] [core:error] [pid 19647] [client x.x.x.x] End of script output
before headers: test2.php


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



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


Thread (6 messages)

« previous php.bugs (#186094) next »