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

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

[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')

[PHP-DEV] Single-line comment problem

2010-07-07 Thread Shijiang
Hi I'm not sure whether it's really a bug. The following sample code will emit a parse error. '; echo 'afafa'; } ?> The parser treate the PHP tag within the commented line as a normal tag . -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.