Re: [PHP] constructors in PHP

2005-07-12 Thread Richard Lynch
On Mon, July 11, 2005 10:04 am, Alessandro Rosa said: As far as I know, its not a security issue, but a structure/design issue. The issue is that in php you can't definitely say what type a variable is , whereas in c++ you can say this variable is a string, this one a int, …. But, right

Re: [PHP] constructors in PHP

2005-07-12 Thread Richard Lynch
On Mon, July 11, 2005 9:53 am, Psystorm said: Burhan Khalid wrote: Alessandro Rosa wrote: Thanks to all for clear responses! So just a question now, why have not multiple constructors been implemented? Are there some security issues related to them ? As far as I know, its not a

[PHP] constructors in PHP

2005-07-11 Thread Alessandro Rosa
Is there the possibility to have in PHP multiple class constructors as in C++ or just one ? I would be sure about it in order to prevent useless mad investigations in the code I'm writing. Thanks in advance ... Alessandro Rosa

Re: [PHP] constructors in PHP

2005-07-11 Thread Greg Donald
On 7/11/05, Alessandro Rosa [EMAIL PROTECTED] wrote: Is there the possibility to have in PHP multiple class constructors as in C++ or just one ? Doesn't seem as though you can: cat class.php #!/usr/bin/php ?php error_reporting( E_ALL ); class Foo { function __construct

Re: [PHP] constructors in PHP

2005-07-11 Thread André Medeiros
On Mon, 2005-07-11 at 16:44 +0200, Alessandro Rosa wrote: Is there the possibility to have in PHP multiple class constructors as in C++ or just one ? I would be sure about it in order to prevent useless mad investigations in the code I'm writing. Thanks in advance ... Alessandro Rosa

Re: [PHP] constructors in PHP

2005-07-11 Thread Alessandro Rosa
Thanks to all for clear responses! So just a question now, why have not multiple constructors been implemented? Are there some security issues related to them ? Alessandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] constructors in PHP

2005-07-11 Thread Burhan Khalid
Alessandro Rosa wrote: Thanks to all for clear responses! So just a question now, why have not multiple constructors been implemented? Are there some security issues related to them ? As far as I know, its not a security issue, but a structure/design issue. -- PHP General Mailing List

Re: [PHP] constructors in PHP

2005-07-11 Thread Psystorm
Burhan Khalid wrote: Alessandro Rosa wrote: Thanks to all for clear responses! So just a question now, why have not multiple constructors been implemented? Are there some security issues related to them ? As far as I know, its not a security issue, but a structure/design issue. The

Re: [PHP] constructors in PHP

2005-07-11 Thread Alessandro Rosa
As far as I know, its not a security issue, but a structure/design issue. The issue is that in php you can't definitely say what type a variable is , whereas in c++ you can say this variable is a string, this one a int, …. But, right because PHP is weakly typed, multiple constructors could

Re: [PHP] constructors in PHP

2005-07-11 Thread Greg Donald
On 7/11/05, Alessandro Rosa [EMAIL PROTECTED] wrote: But, right because PHP is weakly typed, multiple constructors could be handled easier, I suppose ... isn't true? The sky is the limit with the function handling functions: http://php.net/manual/en/ref.funchand.php -- Greg Donald Zend