Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
On Wed, 2013-08-07 at 19:02 -0600, Brian Smither wrote: > >Your example does _not_ show this, it works > >as expected and throws a notice, from which can be inferred there is other > >code doing this > > Or relevant code having a side-effect not currently realized. No, you just didn't post rele

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Brian Smither
>Your example does _not_ show this, it works >as expected and throws a notice, from which can be inferred there is other >code doing this Or relevant code having a side-effect not currently realized. >Is your class maybe inheriting from another one and that contains the code >causing this issue?

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
>I have two dozen classes in this application. In every case, there will >be a variable, the name of which is a lowercase variant of the class >name, to which is assigned an instance of the class, when the class's >construct() function completes. The example informs you of this. > Actually, as

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Brian Smither
> $hello = $clsHello; If that conceptual statement (or any occurance of the conceptual $hello) were in the code, then my (really good) Find feature of my code editor would have found it. > There are only a few variables that get assigned as side effects of > functions, but they have very spe

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
On Wed, 2013-08-07 at 21:02 +0100, Stuart Dallas wrote: > On 7 Aug 2013, at 20:45, "Brian Smither" wrote: > > >> I cannot replicate this. > > > > I don't expect anyone to be able to replicate this behavior. The example > > shows an extraordinarily stripped-down sequence of statements that info

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Stuart Dallas
On 7 Aug 2013, at 20:45, "Brian Smither" wrote: >> I cannot replicate this. > > I don't expect anyone to be able to replicate this behavior. The example > shows an extraordinarily stripped-down sequence of statements that informs > what should work, but do to some unknown agent, which, therefo

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Brian Smither
>I cannot replicate this. I don't expect anyone to be able to replicate this behavior. The example shows an extraordinarily stripped-down sequence of statements that informs what should work, but do to some unknown agent, which, therefore, cannot be included in the example, produces unexpected

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
On Wed, 2013-08-07 at 13:11 -0600, Brian Smither wrote: > Second go around: > > I have a situation where, for some unknown reason, where each class that > finishes its __contruct{} function, that class gets automatically assigned to > a variable - other than the variable I specify. > > Concept

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Brian Smither
Second go around: I have a situation where, for some unknown reason, where each class that finishes its __contruct{} function, that class gets automatically assigned to a variable - other than the variable I specify. Conceptually (a little bit better on the conceptualizing): class Hello { priv

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Sebastian Krebs
2013/8/7 Brian Smither > I have a situation where, for some unknown reason, where each class that > finishes its __contruct{} function, that class gets automatically assigned > to a variable - other than the variable I specify. > > Conceptually: > > class Hello { private $_world = 'World'; __cons

[PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Brian Smither
I have a situation where, for some unknown reason, where each class that finishes its __contruct{} function, that class gets automatically assigned to a variable - other than the variable I specify. Conceptually: class Hello { private $_world = 'World'; __construct(){} } $clsHello = new Hello(

[PHP] add call_func() syntax instead call_user_func_array()

2013-08-07 Thread Szopen Xiao
https://bugs.php.net/bug.php?id=65410 above feate bug my implement the syntax think, request master of PHP internals developer help complete my submit code learn the foreach -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php