| Anonymous | Login | Signup for a new account | 11-04-2025 05:45 PST | 
| Main | My View | View Issues | Change Log | Docs | 
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0004556 | [Quercus] | crash | always | 05-16-11 08:01 | 05-20-11 02:17 | ||||
| Reporter | thr | View Status | public | ||||||
| Assigned To | domdorn | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | resolved | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | Product Version | 4.0.14 | |||||
| Product Build | |||||||||
| Summary | 0004556: date_create with time==null and timezone causes NPE | ||||||||
| Description | 
		Calling function date_create (aca. new DateTime(null, $timezone_object  ) with null and timezone object causes a NullPointerException. Givin null as time is valid according to php documentation and should be similar to 'now'. (http://www.php.net/manual/de/datetime.construct.php) [^] This works in native php Version PHP 5.3.3-1ubuntu9.5 Sample: <?PHP $timezone_string = 'Europe/London'; $timezone_object = timezone_open( $timezone_string ); $datetime = $date = new DateTime(null, $timezone_object ); echo '1 London: ' . date_format($datetime, DATE_ATOM); $datetime = date_create( null, $timezone_object ); echo '2 London: ' . date_format($datetime, DATE_ATOM); ?>  | 
||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files | 
		 | 
||||||||
| 
 | 
|||||||||
		 
		Notes	 | 
|
| 
		(0005249) kdecherf 05-17-11 02:14  | 
	A patch to fix this issue will be attached. | 
| 
		(0005268) domdorn 05-20-11 02:17  | 
	
		php/1951 fixed in trunk, available in quercus 4.0.19  | 
| 	Mantis 1.0.0rc3[^]
	Copyright © 2000 - 2005 Mantis Group
	34 total queries executed. 28 unique queries executed.  |