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,
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
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
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
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
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
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
> 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
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
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
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://
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
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
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'
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
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:
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
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
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
* working on the zend engine
* adding extentions
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
* working on the zend engine
* adding extentions
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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
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()
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
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
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
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
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
28 matches
Mail list logo