Mantis - Quercus
Viewing Issue Advanced Details
5822 block always 11-10-14 06:13 11-13-14 16:03
extremia  
nam Windows  
normal 7  
closed 4.0.36  
fixed  
none    
none  
0005822: Fatal Error: 'date_diff' is an unknown function
Use of date_diff function causes fatal error:

[14-11-10 15:44:06.533] {resin-port-8080-11} c:\Java\resin-pro-4.0.41\webapps\ROOT\webwidget\order.multilist.php:926: Fatal Error: 'date_diff' is an unknown function.
Example code:

$delivery_date = explode(' ', $delivery_date);
$delivery_date = date_create($delivery_date[0]);
$now_date = date_create(date('Y-m-d'));
$difference = date_diff($now_date, $delivery_date);
According to http://php.net/manual/en/function.date-diff.php [^] date_diff function is an alias of DateTime::diff() (PHP 5 >= 5.3.0)

Notes
(0006574)
extremia   
11-13-14 12:53   
I created simple fix for this. Which one of theose numerous ant tasks creates resin.jar?
(0006576)
nam   
11-13-14 16:02   
php/195c

Fixed for 4.0.42.
(0006577)
nam   
11-13-14 16:03   
You can build a combined jar with:

$ ant dist