<?php
class Lazy{
public function __call($method, $arguments){
$args = implode(', ', $args);
echo "Call to $method() with args '$args' failed!";
}
}
$lazy = new Lazy();
$lazy->a();
Warning: Undefined variable $args in /in/AgkQp on line 7
Fatal error: Uncaught TypeError: implode(): Argument #1 ($array) must be of type array, string given in /in/AgkQp:7
Stack trace:
#0 /in/AgkQp(7): implode(', ', NULL)
#1 /in/AgkQp(16): Lazy->__call('a', Array)
#2 {main}
thrown in /in/AgkQp on line 7
Process exited with code 255.
Warning: Undefined variable $args in /in/AgkQp on line 7
Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /in/AgkQp:7
Stack trace:
#0 /in/AgkQp(7): implode(', ', NULL)
#1 /in/AgkQp(16): Lazy->__call('a', Array)
#2 {main}
thrown in /in/AgkQp on line 7
Process exited with code 255.
Notice: Undefined variable: args in /in/AgkQp on line 7
Warning: implode(): Invalid arguments passed in /in/AgkQp on line 7
Call to a() with args '' failed!
Output for 7.3.32 - 7.3.33
Warning: implode(): Invalid arguments passed in /in/AgkQp on line 7
Call to a() with args '' failed!
Notice: Undefined variable: args in /in/AgkQp on line 7
Warning: implode(): Bad arguments. in /in/AgkQp on line 7
Call to a() with args '' failed!
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: args in /in/AgkQp on line 7
Warning: implode(): Bad arguments. in /in/AgkQp on line 7
Call to a() with args '' failed!
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/AgkQp on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/AgkQp on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/AgkQp on line 5
Process exited with code 255.