note 9853 modified in function.sscanf by felipe
| From: | felipe@php.net | Date: | Tue, 22 Jul 2008 02:55:11 +0000 |
| Subject: | note 9853 modified in function.sscanf by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142467@lists.php.net to get a copy of this message | ||
<?php list($phone11, $phone12, $phone13) = sscanf($arow[9],"(%d) %d-%d"); ?>
If thoes variables dont have data in them it seems to cause segfaults on apache. ( just to save you
some trouble shooting time here is my fix:
<?php sscanf($arow[9],"(%d) %d-%d", &$phone11,&$phone12, &$phone13); ?>
--was--
list($phone11, $phone12, $phone13) = sscanf($arow[9],"(%d) %d-%d");
If thoes variables dont have data in them it seems to cause segfaults on apache. ( just to save you
some trouble shooting time here is my fix:
sscanf($arow[9],"(%d) %d-%d", &$phone11,&$phone12, &$phone13);
http://php.net/manual/en/function.sscanf.php