php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43383 date() function 'o'
Submitted: 2007-11-23 03:00 UTC Modified: 2007-11-24 06:55 UTC
From: jfrancis at connected dot net dot au Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.5 OS: Server 2003 / IIS
Private report: No CVE-ID: None
 [2007-11-23 03:00 UTC] jfrancis at connected dot net dot au
Description:
------------
Using "zend.ze1_compatibility_mode = On" does not remove the 'o' function in date() (released with PHP 5.1). 

This is for a large program not written by a company which is no more - I don't particularly want to excape each instance of 'of' in their code.

Reproduce code:
---------------
echo date("l jS of F Y g:i:s A",$now);

Expected result:
----------------
Friday 23rd of November 2007 1:31:43 PM

Actual result:
--------------
Friday 23rd 2007f November 2007 1:31:43 PM

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-24 06:55 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

the zend.ze1_compatibility flag is not supposed to touch this at all. It only reverts to the PHP4-type object model.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 17:00:02 2025 UTC