Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Request #1920 setFrom is slow
Submitted: 2004-07-20 09:24 UTC
From: contact at mann dot fr Assigned:
Status: Duplicate Package: DB_DataObject
PHP Version: Irrelevant OS: Linux (Debian i586)
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 !
Your email address:
MUST BE VALID
Solve the problem : 25 - 16 = ?

 
 [2004-07-20 09:24 UTC] contact at mann dot fr
Description: ------------ Date slow the performance of the class in a significant manner. The require_once call is already in a conditional statement of the class.

Comments

 [2004-07-20 09:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-20 10:23 UTC] contact at mann dot fr
If Date is always needed, it should be in a require_once at the top of the file. Line 2993 DB_DataObject Version ??? Voici le code case ($cols[$col] & DB_DATAOBJECT_DATE): if (is_numeric($value)) { $this->$col = date('Y-m-d',$value); return true; } // try date!!!! include_once 'Date.php'; $x = new Date($value); $this->$col = $x->format("%Y-%m-%d"); return true;
 [2004-07-20 10:29 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-20 14:54 UTC] contact at mann dot fr
Perhaps a note to the on-line php documentation. Date not being abailable, it is logical to exit. Of course. I had the feeling that include_once differed from require_once because when I profiled, I noticed that the performance was significantly different using one or the other calls. OK TO CLOSE BUG
 [2004-07-21 01:38 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!