Bug #75099 [Nab]: deprecated features is working in terminal

From: Date: Sun, 20 Aug 2017 07:56:14 +0000
Subject: Bug #75099 [Nab]: deprecated features is working in terminal
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210755@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 Updated by: requinix@php.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: There's your answer. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#210755) next »