Issues

ZF-5848: Forgotten prints

Issue Type: Bug Created: 2009-02-20T03:05:46.000+0000 Last Updated: 2009-02-20T23:10:41.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Oriol Cardona (hury) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:

Description

It seems that you forgot prints traces on Zend_Date lines 178, 181, 183

<pre class="highlight">
 // set datepart
        if (($part !== null && $part !== self::TIMESTAMP) or (!is_numeric($date))) {
print "\n1:".$this->getIso();
            // switch off dst handling for value setting
            $this->setUnixTimestamp($this->getGmtOffset());
print "\n2:".$this->getIso();
            $this->set($date, $part, $this->_locale);
print "\n3:".$this->getIso();

Here the patch for Zend/Date.php

<pre class="highlight">
Index: Date.php
===================================================================
--- Date.php    (revision 14118)
+++ Date.php    (working copy)
@@ -175,12 +175,9 @@
 
         // set datepart
         if (($part !== null && $part !== self::TIMESTAMP) or (!is_numeric($date))) {
-print "\n1:".$this->getIso();
             // switch off dst handling for value setting
             $this->setUnixTimestamp($this->getGmtOffset());
-print "\n2:".$this->getIso();
             $this->set($date, $part, $this->_locale);
-print "\n3:".$this->getIso();
 
             // DST fix
             if ((is_array($date) === true) and (isset($date['hour']) === true)) {

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2009-02-20T23:10:30.000+0000

It seems to be fixed in SVN r14121 by Thomas Weidner

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts