Bug #75099 [Com]: deprecated features is working in terminal
| From: | login at gsdb dot net | Date: | Sun, 20 Aug 2017 07:58:43 +0000 |
| Subject: | Bug #75099 [Com]: deprecated features is working in terminal | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210756@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75099&edit=1
ID: 75099
Comment by: login at gsdb dot net
Reported by: login at gsdb dot net
Summary: deprecated features is working in terminal
Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: ubuntu
PHP Version: 7.0.22
Block user comment: N
Private report: N
New Comment:
error_reporting is E_ALL, so every error should be reported, right?
Previous Comments:
------------------------------------------------------------------------
[2017-08-20 07:56:13] requinix@php.net
There's your answer.
------------------------------------------------------------------------
[2017-08-20 07:55:25] login at gsdb dot net
error_reporting = E_ALL
display_errors = On
error_log = /var/log/php/php.log
------------------------------------------------------------------------
[2017-08-20 07:51:14] requinix@php.net
Check your error_reporting, display_errors, and/or error_log settings.
------------------------------------------------------------------------
[2017-08-20 07:49:45] login at gsdb dot net
Description:
------------
When I run test.php via browser, it outputs:
Deprecated: Non-static method foo::bar() should not be called statically in /home/.../test.php on
line 8
I am not static!
//-------------------------------------
When I run test.php via terminal, it outputs:
I am not static!
Test script:
---------------
<?php
class foo {
function bar() {
echo 'I am not static!';
}
}
foo::bar();
Expected result:
----------------
It should output "Deprecated: Non-static method foo::bar()[...]" in terminal as well.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75099&edit=1