php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49321 Warning: Division by zero in Command line code on line 1 on strtotime
Submitted: 2009-08-21 15:15 UTC Modified: 2009-08-21 16:08 UTC
From: andrew at ajohnstone dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.10 OS: Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrew at ajohnstone dot com
New email:
PHP Version: OS:

 

 [2009-08-21 15:15 UTC] andrew at ajohnstone dot com
Description:
------------
Warning: Division by zero in Command line code on line 1
on strtotime

Reproduce code:
---------------
php -r 'var_dump(strtotime('21/08/2009'));'

Warning: Division by zero in Command line code on line 1

Call Stack:
    0.0001     100992   1. {main}() Command line code:0

bool(false)


Expected result:
----------------
php -r 'var_dump(strtotime('21/08/2009'));'
bool(false)


Actual result:
--------------
Warning: Division by zero in Command line code on line 1

Call Stack:
    0.0001     100992   1. {main}() Command line code:0
bool(false)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-21 16:08 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Can\'t use single quotes for both shell escapes and PHP strings... the shell gets confused.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 01 01:01:28 2024 UTC