mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Merge branch 'support/2.7' into develop
# Conflicts: # README.md # composer.json # composer.lock # core/cmdbsource.class.inc.php # core/dbobject.class.php # datamodels/2.x/combodo-db-tools/db_analyzer.class.inc.php # datamodels/2.x/combodo-db-tools/dbtools.php # datamodels/2.x/combodo-db-tools/dictionaries/zh_cn.dict.combodo-db-tools.php # datamodels/2.x/itop-attachments/dictionaries/zh_cn.dict.itop-attachments.php # datamodels/2.x/itop-core-update/dictionaries/zh_cn.dict.itop-core-update.php # dictionaries/zh_cn.dictionary.itop.core.php # dictionaries/zh_cn.dictionary.itop.ui.php # lib/composer/InstalledVersions.php # lib/composer/autoload_classmap.php # lib/composer/autoload_static.php # lib/composer/installed.php # lib/composer/platform_check.php # pages/ajax.render.php # pages/csvimport.php # setup/ajax.dataloader.php # setup/index.php # setup/setuputils.class.inc.php # test/application/UtilsTest.php
This commit is contained in:
24
lib/bin/php-parse
Normal file
24
lib/bin/php-parse
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Proxy PHP file generated by Composer
|
||||
*
|
||||
* This file includes the referenced bin path (../nikic/php-parser/bin/php-parse) using eval to remove the shebang if present
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
|
||||
$binPath = realpath(__DIR__ . "/" . '../nikic/php-parser/bin/php-parse');
|
||||
$contents = file_get_contents($binPath);
|
||||
$contents = preg_replace('{^#!/.+\r?\n<\?(php)?}', '', $contents, 1, $replaced);
|
||||
if ($replaced) {
|
||||
$contents = strtr($contents, array(
|
||||
'__FILE__' => var_export($binPath, true),
|
||||
'__DIR__' => var_export(dirname($binPath), true),
|
||||
));
|
||||
|
||||
eval($contents);
|
||||
exit(0);
|
||||
}
|
||||
include $binPath;
|
||||
Reference in New Issue
Block a user