AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Matthias Pigulla
> > So, in case of "return new", wouldn't it make sense to remove the > > warning as the code is 'legal'? And please, don't start a new "it's > > just a friendly notice" flame war. > > It's just a notice, tune your error_reporting level accordingly. Sorry, but that is just a stupid killer

Re: AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Oliver Grätz
Matthias Pigulla schrieb: >>>So, in case of "return new", wouldn't it make sense to remove the >>>warning as the code is 'legal'? And please, don't start a new "it's >>>just a friendly notice" flame war. >> >> It's just a notice, tune your error_reporting level accordingly. > > > Sorry, but

AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Matthias Pigulla
Sorry, Olli, if that kind of ignores your statements, but I would like not to distract from the issue. IIRC, what you suggested is called "boxing" in C# and would lead too far here. I wanted to focus only on the "return new ..." case and only on PHP4, as "return new" is a very special case. This p

Re: [PHP-DEV] Timezone stuff - conclusion

2005-10-09 Thread Nuno Lopes
Derick Rethans wrote: You don't need this, as there is: http://no.php.net/date_default_timezone_set cool .. now we only need to get the list of possible legal TZ's documented (or linked from the docs) .. atleast I do not see it yet (but it might be just me not seeing it at 5 am after coming

Re: [PHP-DEV] Timezone stuff - conclusion

2005-10-09 Thread Derick Rethans
On Sun, 9 Oct 2005, Lukas Smith wrote: > Derick Rethans wrote: > > > You don't need this, as there is: > > http://no.php.net/date_default_timezone_set > > cool .. > > now we only need to get the list of possible legal TZ's documented (or linked > from the docs) .. atleast I do not see it yet (b

RE: [PHP-DEV] Timezone stuff - conclusion

2005-10-09 Thread Mike Robinson
> I started the build when I got home at 3am ;-) It's now online: > http://www.php.net/manual/en/timezones.php, I'll check later > today where I want to link this in exactly. Nice work on this TZ stuff Derick. My thanks. Best, Mike Robinson -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] date() status

2005-10-09 Thread Stanislav Malyshev
I'm not sure if all the patches are commited as for now, but it still doesn't work for me. First, IDT setting still returns unknown timezone, second, now PHP crashes in: 0x08095bcd in timelib_tzinfo_dtor (tz=0x0) at php5/ext/date/lib/timelib.c:107 107 TIMELIB_TIME_FREE(tz->name); (g

Re: AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Oliver Grätz
Matthias Pigulla schrieb: > Sorry, Olli, if that kind of ignores your statements, but I would like > not to distract from the issue. IIRC, what you suggested is called > "boxing" in C# and would lead too far here. I knew I was going further in my comment regarding this issue. It was never meant as

AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Matthias Pigulla
> The "return new..." is just a subset of the problem, but not > the only one that is in wide use. For example, this is very common: > > function &getstuff($in) > { > if ($in=='ok') > return new MyObject(); > else > return false; // this is the common line > } > > The "false" obvious

Re: [PHP-DEV] date() status

2005-10-09 Thread Nuno Lopes
I'm not sure if all the patches are commited as for now, but it still doesn't work for me. First, IDT setting still returns unknown timezone, second, now PHP crashes in: 0x08095bcd in timelib_tzinfo_dtor (tz=0x0) at php5/ext/date/lib/timelib.c:107 107 TIMELIB_TIME_FREE(tz->name);

AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Matthias Pigulla
Hm, thinking a little more about this one: > > function &getstuff($in) > > { > > if ($in=='ok') > > return new MyObject(); > > else > > return false; // this is the common line > > } "return false" (or null) is trying to return a reference to a literal, which is (of course) questiona

Re: AW: [PHP-DEV] return /* by reference */ new Foo() in PHP4

2005-10-09 Thread Oliver Grätz
Matthias Pigulla schrieb: > [...] The "return new" issue has the interesting side > effect that notices disappear depending on the constructor's > implementation details. Yes. If the language insists on getting on my nerves, well, then it should at least be consistent in doing do ;-) > Many peopl

[PHP-DEV] CVS Account Request: madal

2005-10-09 Thread Tom Rogers
I have been advised by Steph that I should apply for a cvs account. I have been helping out with php-gtk windows builds and adapting the scintilla editing component to php-gtk2. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php