forked from symfony/symfony1
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PHP 5.5+ compatibility + require PHP 5.3+
Conflicts: .travis.yml data/bin/check_configuration.php lib/form/addon/sfFormObject.class.php lib/plugins/sfDoctrinePlugin/lib/form/sfFormFilterDoctrine.class.php lib/service/sfServiceContainer.class.php lib/util/sfInflector.class.php lib/vendor/lime/lime.php
- Loading branch information
Showing
6 changed files
with
42 additions
and
16 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/* | ||
* This file is part of the symfony package. | ||
* (c) 2004-2006 Fabien Potencier <[email protected]> | ||
* | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
@@ -108,7 +108,9 @@ public function process($arguments = null) | |
else if (!is_array($arguments)) | ||
{ | ||
// hack to split arguments with spaces : --test="with some spaces" | ||
$arguments = preg_replace('/(\'|")(.+?)\\1/e', "str_replace(' ', '=PLACEHOLDER=', '\\2')", $arguments); | ||
$arguments = preg_replace_callback('/(\'|")(.+?)\\1/', function ($match) { | ||
return str_replace(' ', '=PLACEHOLDER=', $match[2]); | ||
}, $arguments); | ||
$arguments = preg_split('/\s+/', $arguments); | ||
$arguments = str_replace('=PLACEHOLDER=', ' ', $arguments); | ||
} | ||
|
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
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