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
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,
.
>
>
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 C
> > 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 c
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 iss
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 (http:/
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
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 R
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
> ./class.php
PHP Fatal error: Cannot redeclare __construct() in
/home/greg/c
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
10 matches
Mail list logo