Re: [PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread Guillaume Rossolini
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

Re: [PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread 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 class. Could someone be kindl

[PHP-DEV] Closures, rebinding and scopes

2010-08-03 Thread Gustavo Lopes
Hi Even though one cannot bind a static closure to an instance, one can rebind its scope with the Closure::bind/Closure::bindTo: class foo { static protected $field = "foo_field"; static function getClosure() { return static function () {

Re: [PHP-DEV] 答复: [PHP-DEV] full LFS support

2010-08-03 Thread Ferenc Kovacs
Maybe this is just lost in the weekend's email swarm. At least I hope this is the reason for the silence. Tyrael On Tue, Aug 3, 2010 at 2:11 PM, 高春辉 wrote: > nobody to care this change? :( > > -邮件原件- > 发件人: tyr...@gmail.com [mailto:tyr...@gmail.com] 代表 Ferenc Kovacs > 发送时间: 2010年7月30日 22

[PHP-DEV] 答复: [PHP-DEV] full LFS support

2010-08-03 Thread 高春辉
nobody to care this change? :( -邮件原件- 发件人: tyr...@gmail.com [mailto:tyr...@gmail.com] 代表 Ferenc Kovacs 发送时间: 2010年7月30日 22:14 收件人: PHP Internals 主题: [PHP-DEV] full LFS support Hi. I would like to know what is the current status of the LFS support for php. http://bugs.php.net/bug.php?id=

Re: [PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread Victor Bolshov
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

Re: [PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread 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 in Command line code on line 1 > -- > > ??? > > 2010/8/3 Shijiang > >> Hi, >> >> In the following sample code, I expected that the magic method __

Re: [PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread 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 __call only > works within the class Test. > But

Re: [PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread Ferenc Kovacs
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

[PHP-DEV] Confusing performance of the magic method __call

2010-08-03 Thread 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. kakaka('afaafaf'); } } $foo=new Test; $foo->bar('sfsfss')