|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-27 16:48 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2015-07-27 16:48 UTC] cmb@php.net
[2021-11-23 11:33 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
[2021-11-23 11:33 UTC] cmb@php.net
[2022-06-02 09:41 UTC] git@php.net
[2022-06-02 09:41 UTC] git@php.net
-Status: Verified
+Status: Closed
[2022-06-03 18:02 UTC] git@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ date_parse() is expected to return false for missing values. For example: date_parse('1st Aug')['year'] === false; As soon as you provide day of week, the hour, minute, second components magically become 0 (as in 00:00:00) even though they do not exist: date_parse('Sat 1st Aug')['hour'] === 0; // expected: false date_parse('Sat 1st Aug')['minute'] === 0; // expected: false date_parse('Sat 1st Aug')['second'] === 0; // expected: false See: http://3v4l.org/HvND2 Test script: --------------- <?php print_r(date_parse('Sat 1st Aug'));