Posted by Manikandan on 08/30/06 11:43
Hi,
I am using the following snippet to compare an object with integer in
my script.
if ( $forecast['day_sequence'] < 4 ) {
I got the "segmentation fault" error message when i executed this
script in CLI. After debugging, i had changed my code to
if ( (int) $forecast['day_sequence'] < 4 ) {
and its worked well. So its means my php version dont do typecasting
automatically it seems.
Is it true?
--
Mani
Navigation:
[Reply to this message]
|