Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Brian Moon
Brian Moon wrote: You can call time pass as const. Damn, need to proof read. Should be "CAN'T" -- Brian Moon - http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Brian Moon
Guilherme Blanco wrote: Why? Because $db should be a constant and could not be modified. Allowing this, the 3rd party component could redefine some important properties inside of your object and may cause unbelievable issues in your appplication. This makes it sound like you let other people wr

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Sean Coates
> $db = new DBConnection($properties); > // Notice, still not connected to DB > $third_party_obj->foo($db); > $db->connect(); In the requested feature, the "protection" is in the wrong hands (that of the third party object). You're much better off changing your call to: $third_party_obj->foo(clon

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Guilherme Blanco
Hi, I think it's a great possibility too, specially when dealing with 3rd party components. If you have an interface in your application to be implemented by others, you can notice them about the constant argument (and should NOT be redefined) and throw a fatal error (altho I still do not unders

Re: [PHP-DEV] PHP 5.2.1 crashing Apache/IIS...

2007-03-02 Thread Thomas Hruska
William A. Rowe, Jr. wrote: Thomas Hruska wrote: Heads up! Installed the latest Win32 binaries of thread-safe PHP 5.2.1 on Win32 Apache and IIS. PHP started crashing (definitely PHP - php5ts.dll) when I went to access the MyProBB web forum. (Win32 Apache flat out crashes, IIS bails with HTTP

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Pierre
On 3/2/07, Jakob Buchgraber <[EMAIL PROTECTED]> wrote: Marco Kaiser wrote: > Hi Jakob, >> It would be nice if in PHP 6 using constant parameters for functions >> and methods would be possible. This feature is e.g. available in Java. >> >> function doSth (const A) { >> if (defined ("A")) echo

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Jakob Buchgraber
Marco Kaiser wrote: Hi Jakob, It would be nice if in PHP 6 using constant parameters for functions and methods would be possible. This feature is e.g. available in Java. function doSth (const A) { if (defined ("A")) echo "A is a constant"; } doSth ("foo"); Cheers, Jay This makes absolut

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Marco Kaiser
Hi Jakob, > It would be nice if in PHP 6 using constant parameters for functions > and methods would be possible. This feature is e.g. available in Java. > > function doSth (const A) { > if (defined ("A")) echo "A is a constant"; > } > > doSth ("foo"); > > Cheers, > Jay > This makes absolute no

Re: [PHP-DEV] Constant Parameters

2007-03-02 Thread Brian Moon
Jakob Buchgraber wrote: Hello! It would be nice if in PHP 6 using constant parameters for functions and methods would be possible. This feature is e.g. available in Java. function doSth (const A) { if (defined ("A")) echo "A is a constant"; } doSth ("foo"); Cheers, Jay Hmm, can you g

[PHP-DEV] Constant Parameters

2007-03-02 Thread Jakob Buchgraber
Hello! It would be nice if in PHP 6 using constant parameters for functions and methods would be possible. This feature is e.g. available in Java. function doSth (const A) { if (defined ("A")) echo "A is a constant"; } doSth ("foo"); Cheers, Jay -- PHP Internals - PHP Runtime Developmen

[PHP-DEV] Re: COM extension defects: Patch for defect 35872

2007-03-02 Thread Frank M. Kromann
Hi ANdy, Looks good to me. Nice and clean. - Frank > Hi Internals, > Below are details of a suggested patch for COM extension defect > 35872 (http://bugs.php.net/bug.php?id=35872) for review/approval. > All comments welcome; good or bad. > > Regards >Andy > > Andy Wharmby > IBM Unit

[PHP-DEV] COM extension defects: Patch for defect 35872

2007-03-02 Thread Andy Wharmby
Hi Internals, Below are details of a suggested patch for COM extension defect 35872 (http://bugs.php.net/bug.php?id=35872) for review/approval. All comments welcome; good or bad. Regards Andy Andy Wharmby IBM United Kingdom Limited Winchester, England SO21 2JN E-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] FastCGI limit memory

2007-03-02 Thread Reinis Rozitis
For example lighttpd according to NetCraft: 01.2007 lighttpd 172819 02.2007 lighttpd 702712 You should wait march, such a jump is suspect :) --Pierre Hello Pierre, 03.2007 lighttpd 1.399.786 http://survey.netcraft.com/Reports/0703/ This gives place 4, right behind Sun (if you skip 'unknow