Skip to content

Commit

Permalink
Fixed call to not initialized properties
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Jul 7, 2018
1 parent 342b86b commit 2bd0380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/phing/Phing.php
Original file line number Diff line number Diff line change
Expand Up @@ -1524,9 +1524,10 @@ private static function setSystemConstants()
} else {
self::setProperty(self::PHP_INTERPRETER, getenv('PHP_COMMAND'));
}
self::setProperty('file.separator', PhingFile::$separator);
$file = new PhingFile('.');
self::setProperty('file.separator', $file::$separator);
self::setProperty('line.separator', PHP_EOL);
self::setProperty('path.separator', PhingFile::$pathSeparator);
self::setProperty('path.separator', $file::$pathSeparator);
self::setProperty(self::PHP_VERSION, PHP_VERSION);
self::setProperty('php.tmpdir', sys_get_temp_dir());
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
Expand Down

0 comments on commit 2bd0380

Please sign in to comment.