#42406 [Fbk]: strtotime cause segmentation fail

From: Date: Sat, 25 Aug 2007 00:31:39 +0000
Subject: #42406 [Fbk]: strtotime cause segmentation fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116647@lists.php.net to get a copy of this message
ID: 42406 Updated by: stas@php.net Reported By: jason_jin at sdc dot sercomm dot com Status: Feedback Bug Type: Date/time related Operating System: linux PHP Version: 5.2.3 New Comment: Can't there be a problem in uclibc or the way php is built with it? It's most probable cause since it doesn't seem to happen on standard Linux. Previous Comments: ------------------------------------------------------------------------ [2007-08-24 10:19:19] jani@php.net Perhaps you should give us some more information about the system you're getting the crash with? And are you compiling it IN the system or are you trying to cross-compile it on another machine? Cross-compiling is very tricky and we don't really support it. ------------------------------------------------------------------------ [2007-08-24 09:44:30] jason_jin at sdc dot sercomm dot com I have porting php-5.2.3 to my embedded system. It also has this problem. Our embedded system do not have gdb. ------------------------------------------------------------------------ [2007-08-24 04:30:15] jason_jin at sdc dot sercomm dot com Description: ------------ Execution of Reproduce code on my embedded linux system produce following error message: 1187917260 Segmentation fault My embedded system use uclibc.php version is 5.1.6. Reproduce code work well on my pc whose php version is 5.1.2. Reproduce code: --------------- <?php $aa=mktime(1,1,0,8,24); echo $aa."\n"; $bb=strtotime('+1 day', $aa); echo $bb."\n"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42406&edit=1

« previous php.bugs (#116647) next »