php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55583 Startup errors are shown twice
Submitted: 2011-09-05 10:02 UTC Modified: 2011-09-06 11:11 UTC
From: shein@php.net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: trunk-SVN-2011-09-05 (SVN) OS: Ubuntu Linux 11.04 x86
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shein@php.net
New email:
PHP Version: OS:

 

 [2011-09-05 10:02 UTC] shein@php.net
Description:
------------
Some startup errors are shown twice with slightly changed wording, for example:

PHP Warning:  PHP Startup: session.upload_progress.freq must be greater than or 
equal to zero in Unknown on line 0

Warning: PHP Startup: session.upload_progress.freq must be greater than or equal 
to zero in Unknown on line 0


One of the warnings obviously should be removed since having one is enough.
See also this discussion: http://news.php.net/php.cvs/66176

Test script:
---------------
$ php -n -d error_reporting=-1 -d display_startup_errors=1 -d session.upload_progress.freq=-1 -r ''



Expected result:
----------------
PHP Warning:  PHP Startup: session.upload_progress.freq must be greater than or 
equal to zero in Unknown on line 0

Actual result:
--------------
PHP Warning:  PHP Startup: session.upload_progress.freq must be greater than or 
equal to zero in Unknown on line 0

Warning: PHP Startup: session.upload_progress.freq must be greater than or equal 
to zero in Unknown on line 0


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-05 15:29 UTC] laruence@php.net
actually, these are different error msg type,  one is log error, the other is 
display error.  but in cli , they were all outputted to stderr.
 [2011-09-06 02:30 UTC] laruence@php.net
-Status: Open +Status: Bogus
 [2011-09-06 02:30 UTC] laruence@php.net
I'm going to mark this as `bogus`, you can got only one error msg by:
php -ddisplay_errors=0 -d session.upload_progress.freq=-1 -r ''
 [2011-09-06 11:11 UTC] shein@php.net
Ok, thank you for the quick response.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 10:01:28 2024 UTC