PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #3359

break missing in DB_DataObject_Cast::date()

Details

Submitted2005-02-02 11:37 UTC
Fromeckhard dot pruehs at snap dot de
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.3
OSall
Roadmaps(Not assigned)

Comments

[2005-02-02 11:37 UTC] eckhard dot pruehs at snap dot de

Description:
------------
Add a break in Cast.php before line 181.

...
switch(count($args)) {
case 0: // no args = today!
$bits = explode('-',date('Y-m-d'));
break;
case 1: // one arg = a string

if (strpos($args[0],'/') !== false) {
$bits = array_reverse(explode('/',$args[0]));
} else {
$bits = explode('-',$args[0]);
}
**** I need a break here ****
default: // 2 or more..
$bits = $args;
}
...