|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-08-20 07:51 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-08-20 07:51 UTC] requinix@php.net
[2017-08-20 07:55 UTC] login at gsdb dot net
[2017-08-20 07:56 UTC] requinix@php.net
[2017-08-20 07:58 UTC] login at gsdb dot net
[2017-08-20 08:00 UTC] requinix@php.net
[2017-08-20 08:03 UTC] login at gsdb dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 20:00:02 2026 UTC |
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.