mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 22:35:43 +08:00
Fix extension test escape string for unix
This commit is contained in:
@@ -180,8 +180,8 @@ class Extension
|
||||
if (file_exists(ROOT_DIR . '/src/globals/ext-tests/' . $this->getName() . '.php')) {
|
||||
// Trim additional content & escape special characters to allow inline usage
|
||||
$test = str_replace(
|
||||
['<?php', 'declare(strict_types=1);', "\n", '"', '$'],
|
||||
['', '', '', '\"', '\$'],
|
||||
['<?php', 'declare(strict_types=1);', "\n", '"', '$', '!'],
|
||||
['', '', '', '\"', '\$', '"\'!\'"'],
|
||||
file_get_contents(ROOT_DIR . '/src/globals/ext-tests/' . $this->getName() . '.php')
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user