Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Johannes Reichardt
Hi Marek, actually this behaviour is "too critical" since there are many cases where "compliant code" is not as well as much more simpler code. reminds me on the w3c standards that are so high that some things simply dont comply if you want them ;) just a warning would be way better. - Johann

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
Mark Charette wrote: From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Well, what I always know about my variables is if they are arrays or scalar ;) And I don't consider warning to be much nicer then error Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the type passed t

RE: [PHP] PHP5 bloats the code

2004-04-24 Thread Mark Charette
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Well, what I always know about my variables is if they are arrays or > scalar ;) And I don't consider warning to be much nicer then error Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the type passed to them since PHP

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
Curt Zirzow wrote: Here is the offending situation: /* E_NOTICE: undefined index, returns false */ unset($a); echo is_array($a['foo']['asdf']); /* returns false */ $a = 'asdf'; echo isset($a['foo']['asdf']); /* returns false */ $a = array('foo' => 'asdf'); echo is_array($a['foo']['asdf']); /* E_

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Johannes Reichardt
Hi Curt, thank you for pointing this one out. Who are the "php internals" and how could i contact them? This issue was rejected as bug recently. - Johannes * Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): I just installed php5 (finaly :-)) and it does not throw any error nor warning. I th

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Curt Zirzow
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): > I just installed php5 (finaly :-)) and it does not throw any error nor > warning. I think what you see is Notice, so the behavior did not change. Here is the offending situation: 'asdf'); echo is_array($a['foo']['asdf']); /* E_ERROR Invalid

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
I just installed php5 (finaly :-)) and it does not throw any error nor warning. I think what you see is Notice, so the behavior did not change. Johannes Reichardt wrote: Hi there, i don´t know if this is the right place to ask but since there are a lot of cracks around i thought i throw this i

Re: [PHP] PHP5 bloats the code

2004-04-24 Thread Marek Kilimajer
Hmm, this will certainly slow down PHP5 acceptance. I cannot imagine a hosting company that will upgrade to PHP5 and break so many client's applications. Johannes Reichardt wrote: Hi there, i don´t know if this is the right place to ask but since there are a lot of cracks around i thought i th

[PHP] PHP5 bloats the code

2004-04-24 Thread Johannes Reichardt
Hi there, i don´t know if this is the right place to ask but since there are a lot of cracks around i thought i throw this in here. actually i am using typo3 (www.typo3.org) a full-blown, extendable cm-framework that is based on php. so here is the problem: typo3 very often uses a syntax like