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
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
> 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
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_
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
* 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
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
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
8 matches
Mail list logo