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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 31 = ?
Subscribe to this entry?

 
 [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: Thu May 02 20:01:31 2024 UTC