Bug #74094 [Com]: Too strict checks when using CLI SAPI

From: Date: Mon, 13 Feb 2017 18:04:25 +0000
Subject: Bug #74094 [Com]: Too strict checks when using CLI SAPI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207374@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74094&edit=1

 ID:                 74094
 Comment by:         yunosh@php.net
 Reported by:        yunosh@php.net
 Summary:            Too strict checks when using CLI SAPI
 Status:             Open
 Type:               Bug
 Package:            Session related
 PHP Version:        master-Git-2017-02-13 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

This can be seen in real life here: https://travis-ci.org/horde/horde/jobs/201207489#L1860


Previous Comments:
------------------------------------------------------------------------
[2017-02-13 18:01:26] yunosh@php.net

Description:
------------
When using the CLI SAPI, it doesn't make sense to implement the same strict HTTP header checks
like in webserver SAPIs IMO. There are no headers sent in this case, so the error messages are at
least misleading.
As a consequence, it makes unit testing of session related code impossible, because unit testing
frameworks usually produce output before even running a single test.



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



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


Thread (4 messages)

« previous php.bugs (#207374) next »