-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #75002 Null Pointer Dereference in timelib_time_clone
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Bug #75002 Null Pointer Dereference in timelib_time_clone | ||
--FILE-- | ||
<?php | ||
|
||
class aaa extends DatePeriod { | ||
public function __construct() { } | ||
} | ||
|
||
$start=new DateTime( '2012-08-01' ); | ||
|
||
foreach (new aaa($start) as $y) { | ||
$a=$key; | ||
} | ||
|
||
?> | ||
==DONE== | ||
--EXPECTF-- | ||
Fatal error: Uncaught Error: DatePeriod has not been initialized correctly in %sbug75002.php:%d | ||
Stack trace: | ||
#0 {main} | ||
thrown in %sbug75002.php on line %d |