2010/8/4 Shijiang
> I was working with PHP 5.2.9 with error_report=E_ALL and display_errors=On
> and got no error at all.
>
> Just now I tried it under PHP 5.3.0 and got the warning.
>
> Sometimes although I declared the magic method __call(), I want to prevent
> it from being called outside the
kindly enough to tell me why it must be public?
Thanks.
- Original Message -
From: Victor Bolshov
To: Shijiang
Cc: PHP internals
Sent: Tuesday, August 03, 2010 7:15 PM
Subject: Re: [PHP-DEV] Confusing performance of the magic method __call
Shijiang, did you notice the
Yes, sorry. I've been working with 5.3 for pretty long time so I found the
original letter a bit strange.
2010/8/3 Ferenc Kovacs
> 2010/8/3 Victor Bolshov :
> > Shijiang, did you notice the
> >
> > --
> > Warning: The magic method __call() must have public visibility and cannot
> be
> > static i
2010/8/3 Victor Bolshov :
> Shijiang, did you notice the
>
> --
> Warning: The magic method __call() must have public visibility and cannot be
> static in Command line code on line 1
> --
>
> ???
>
> 2010/8/3 Shijiang
>
>> Hi,
>>
>> In the following sample code, I expected that the magic method __
Shijiang, did you notice the
--
Warning: The magic method __call() must have public visibility and cannot be
static in Command line code on line 1
--
???
2010/8/3 Shijiang
> Hi,
>
> In the following sample code, I expected that the magic method __call only
> works within the class Test.
> But
2010/8/3 Shijiang :
> Hi,
>
> In the following sample code, I expected that the magic method __call only
> works within the class Test.
> But it seems that the access control keyword private lost its efficacy when
> working together with the magic method __call.
>
> class Test{
> private func
Hi,
In the following sample code, I expected that the magic method __call only
works within the class Test.
But it seems that the access control keyword private lost its efficacy when
working together with the magic method __call.
kakaka('afaafaf');
}
}
$foo=new Test;
$foo->bar('sfsfss')