mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Fix extension test escape string for unix
This commit is contained in:
parent
3711db1093
commit
c40e41cebe
@ -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')
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user