Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Andi Gutmans
I don't like these ideas. I think it should stay the way it is and not only because we're at RC2. If Thies doesn't want to deal with this, then he can write constructors without logic. It's not that hard for the one in many classes where this might be needed. Andi At 08:20 AM 4/15/2004 +0200,

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Marcus Boerger
Hello Sterling, Thursday, April 15, 2004, 7:55:17 AM, you wrote: > On Apr 14, 2004, at 10:36 PM, Thies C.Arntzen wrote: >> if ctors are the only place that *cannot* life without exceptions it >> would be well worth *fixing* (yes, i said fix), as adding >> "understanding exceptions" to the list

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Marcus Boerger
Hello Thies, Return NULL wouldn't work because a ctor always returns NULL by default so we nee a trick. Would reallowing $this = NULL in ctors only and direct return and disallowing any other value be an option for (perhaps the executor can capture that event)? Would you like that? Aparat from th

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Andi Gutmans
At 07:36 AM 4/15/2004 +0200, Thies C.Arntzen wrote: Am 14.04.2004 um 21:53 schrieb Marcus Boerger: Personally I'd much prefer a way of returning a value from a constructor, i.e. to be able to 'return null;' or a similar language construct so I could do 'if ($db = new SQLiteDatabase)' It would als

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Sterling Hughes
On Apr 14, 2004, at 10:36 PM, Thies C.Arntzen wrote: Am 14.04.2004 um 21:53 schrieb Marcus Boerger: Personally I'd much prefer a way of returning a value from a constructor, i.e. to be able to 'return null;' or a similar language construct so I could do 'if ($db = new SQLiteDatabase)' It would al

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Thies C . Arntzen
Am 14.04.2004 um 21:53 schrieb Marcus Boerger: Personally I'd much prefer a way of returning a value from a constructor, i.e. to be able to 'return null;' or a similar language construct so I could do 'if ($db = new SQLiteDatabase)' It would also mean that I would run into a 'calling method on a n

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Greg Beaver
Marcus Boerger wrote: Hello Jani, Wednesday, April 14, 2004, 3:35:23 AM, you wrote: On Wed, 14 Apr 2004, Marcus Boerger wrote: This is actually a pretty nasty side effect of throwing exceptions in ctors because these two lines have *very* different results if they fail: $db = new SQLiteDatab

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread cm
> Marcus Boerger wrote: >> In no language i know (c++, delphi, java as the popular ones) a ctor > > First of all I'm a bit sad that you compare PHP with 'old' static OO > languages, not 'modern' dynamic ones like Python or Ruby. Wrong focus > IMHO. First of all, PHP's object model is most similar t

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Christian Schneider
Marcus Boerger wrote: In no language i know (c++, delphi, java as the popular ones) a ctor First of all I'm a bit sad that you compare PHP with 'old' static OO languages, not 'modern' dynamic ones like Python or Ruby. Wrong focus IMHO. Second I don't think that's a very strong point: None of the

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Marcus Boerger
Hello Christian, Wednesday, April 14, 2004, 2:31:12 PM, you wrote: > Marcus Boerger wrote: >> As i explained there is no good other way to tell the user the >> ctor has failed. The two ways out out are: > Personally I'd much prefer a way of returning a value from a > constructor, i.e. to be abl

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Christian Schneider
Sterling Hughes wrote: Objects that have logic in a constructor throw exceptions - that's how it works. I disagree. There *are* options to this approach as has been pointed out earlier in this thread. - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Sterling Hughes
The way to avoid exceptions in ctors is using empty exceptions and issuing E_WARNINGs or E_ERRORs from every method when the instance wansn't initialized already. If you think twise this is worse and also comes along with a speed penalty from the additional checks. Anyway if you don't want to deal

Re: [PHP-DEV] snaps

2004-04-14 Thread Nuno Lopes
Don't forget that tidy isn't compiling! http://snaps.php.net/win32/snapshot.log -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] snaps

2004-04-14 Thread Wez Furlong
Thanks to Edin, should again be fixed for the next snap :) --Wez. - Original Message - From: "Nuno Lopes" <[EMAIL PROTECTED]> To: "Wez Furlong" <[EMAIL PROTECTED]>; "PHPdev" <[EMAIL PROTECTED]> Sent: Wednesday, April 14, 2004 3:16 PM Subject: Re: [PHP-DEV] snaps > Sorry, but they aren'

Re: [PHP-DEV] cvs.php.net - horde bugs..

2004-04-14 Thread Chuck Hagenbuch
Quoting Allowee <[EMAIL PROTECTED]>: http://cvs.php.net/co.php/livedocs/README?r=1.14 Notice: Undefined variable: flowed in /usr/home/Web/chora.php.net/horde/framework/MIME/MIME/Viewer/plain.php on line 38 and a link (www.php.net/license) found on that page: http://cvs.php.net/horde/services/go

Re: [PHP-DEV] snaps

2004-04-14 Thread Nuno Lopes
Sorry, but they aren't compiling yet: php5ts.dll.def : error LNK2001: unresolved external symbol BZ2_bzCompress php5ts.dll.def : error LNK2001: unresolved external symbol BZ2_bzCompressEnd php5ts.dll.def : error LNK2001: unresolved external symbol BZ2_bzCompressInit php5ts.dll.def : error LNK2001:

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Christian Schneider
Marcus Boerger wrote: As i explained there is no good other way to tell the user the ctor has failed. The two ways out out are: Personally I'd much prefer a way of returning a value from a constructor, i.e. to be able to 'return null;' or a similar language construct so I could do 'if ($db = new

[PHP-DEV] RC2RC1

2004-04-14 Thread Andi Gutmans
I rolled PHP 5.0.0RC2RC1. Please check it out and see that it builds well. If so, I will roll RC2 soon... http://snaps.php.net/~andi/ Please don't commit patches unless they are critical bug fixes in the meanwhile. If you're not sure, mail internals@ Andi -- PHP Internals - PHP Runtime Develop

Re: [PHP-DEV] cvs.php.net - horde bugs..

2004-04-14 Thread Allowee
just found some other problems not sure if they are known yet.. http://cvs.php.net/co.php/livedocs/README?r=1.14 Notice: Undefined variable: flowed in /usr/home/Web/chora.php.net/horde/framework/MIME/MIME/Viewer/plain.php on line 38 and a link (www.php.net/license) found on that page: http://cv

[PHP-DEV] CVS Account Request: rafi

2004-04-14 Thread Rafi Yanai
* working on the zend engine * adding extentions -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: shie

2004-04-14 Thread Shie Erlich
* working on the zend engine * adding extentions -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] HealthCare Sector/Medical Technologies - AMTK Exclusive Contracts, Wed, 14 Apr 2004 00:56:30 -0800

2004-04-14 Thread Phil Laird
Equity Spoltight - Wed, 14 Apr 2004 00:56:30 -0800 Symbol: AMTK - Austin Medical Technologies Sector: HealthCare/Medical Technologies AMTK - On the Cutting Edge of Medical Technologies AMTK is experiencing strong and sturdy growth due to the continued demand for its products and services utiliz

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Marcus Boerger
Hello Jani, Wednesday, April 14, 2004, 3:35:23 AM, you wrote: > On Wed, 14 Apr 2004, Marcus Boerger wrote: >>> This is actually a pretty nasty side effect of throwing exceptions in >>> ctors because these two lines have *very* different results if they >>> fail: >> >>> $db = new SQLiteDatabase()

Re: [PHP-DEV] RC2RC1

2004-04-14 Thread Derick Rethans
On Wed, 14 Apr 2004, Andi Gutmans wrote: > Can you commit a patch so that I can roll it tomorrow? Done. Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Exceptions and Errors

2004-04-14 Thread Marcus Boerger
Hello Adam, Wednesday, April 14, 2004, 7:36:43 AM, you wrote: > On Wed, 14 Apr 2004, Marcus Boerger wrote: > Hello Marcus -- >> > This is actually a pretty nasty side effect of throwing exceptions in >> > ctors because these two lines have *very* different results if they >> > fail: >> >> > $db

Re: [PHP-DEV] cvs.php.net - horde bugs..

2004-04-14 Thread Derick Rethans
On Wed, 14 Apr 2004, Jon Parise wrote: > On Wed, Apr 14, 2004 at 12:41:05PM +0800, Alan Knowles wrote: > > > Can someone have a look at cvs.php.net - looks like it's missing > > Horde/Auth/autoo.php > > There's a typo in horde/config/conf.php ('autoo' instead of 'auto'). > I don't have access to f

Re: [PHP-DEV] CVS Account Request: rosen

2004-04-14 Thread Kouber Saparev
Yeah, although I have followed the steps described in http://www.php.net/manual/howto/chapter-translation.html and I have asked several times during the last year, a phpdoc-bg module wasn't created. As I have noticed, bulgarian is not the only language which is put on hold, but I'm not quite sure a

Re: [PHP-DEV] cvs.php.net - horde bugs..

2004-04-14 Thread Jon Parise
On Wed, Apr 14, 2004 at 12:41:05PM +0800, Alan Knowles wrote: > Can someone have a look at cvs.php.net - looks like it's missing > Horde/Auth/autoo.php There's a typo in horde/config/conf.php ('autoo' instead of 'auto'). I don't have access to fix it, though. This is not a Horde bug. -- Jon P