php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42406 strtotime cause segmentation fail
Submitted: 2007-08-24 04:30 UTC Modified: 2007-09-01 01:00 UTC
From: jason_jin at sdc dot sercomm dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 5.2.3 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-08-24 04:30 UTC] 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";
?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-24 09:44 UTC] 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 10:19 UTC] 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-25 00:31 UTC] stas@php.net
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.
 [2007-09-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC