Skip to content

Commit 624ab02

Browse files
committed
wip
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent 439f757 commit 624ab02

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,15 @@ jobs:
585585
EXT_DIR=$(php -r "echo ini_get('extension_dir');")
586586
587587
if [[ "${{ matrix.os }}" == "macos-13" ]]; then
588-
BUILT_LIB=$(find target/release -name "*.dylib" | head -1)
588+
BUILT_LIB=$(find target/release -name "libcss_inline_php.dylib" -o -name "css_inline_php.dylib" | head -1)
589+
if [[ -z "$BUILT_LIB" ]]; then
590+
BUILT_LIB=$(find target/release -name "*.dylib" | head -1)
591+
fi
592+
sudo cp "$BUILT_LIB" "$EXT_DIR/css_inline.so"
589593
else
590594
BUILT_LIB=$(find target/release -name "*.so" | head -1)
595+
sudo cp "$BUILT_LIB" "$EXT_DIR/css_inline.so"
591596
fi
592-
sudo cp "$BUILT_LIB" "$EXT_DIR/css_inline.so"
593597
working-directory: ./bindings/php
594598
shell: bash
595599

bindings/php/benchmarks/InlineBench.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use CssInline;
77
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
88

9-
ini_set('pcre.backtrack_limit', 1000000);
109

1110
class InlineBench
1211
{
@@ -15,6 +14,8 @@ class InlineBench
1514
public function __construct()
1615
{
1716
$this->cssToInlineStyles = new CssToInlineStyles();
17+
ini_set('pcre.backtrack_limit', '10000000');
18+
ini_set('pcre.recursion_limit', '10000000');
1819
}
1920

2021
/**

0 commit comments

Comments
 (0)