Skip to content

Commit fb9965d

Browse files
committed
Added suppression file for PHP 7.4 [skip appveyor]
1 parent d85a07f commit fb9965d

File tree

2 files changed

+87
-4
lines changed

2 files changed

+87
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ before_script:
6161
- make coverage-initial
6262
- |
6363
if [ "$(php-config --vernum)" -ge "70300" ]; then
64-
echo "Patching PHP tests ruunner"
64+
echo "Patching PHP tests runner to silence messages about PHP memory leaks ¯\_(ツ)_/¯"
6565
6666
# TODO: Move to makefile
67-
search_str="valgrind -q --tool=memcheck --trace-children=yes"
68-
add_str="--suppressions=./tests/php-7.3.supp"
69-
sed -e "s|'\($search_str\)'|'\1 $add_str'|" run-tests.php > tmp.php
67+
search_str="valgrind -q --tool=.* --trace-children=yes"
68+
add_str="--suppressions=./tests/php-$(php-config --version | cut -d'.' -f1,2).supp"
69+
sed -e "s|[\"']\($search_str\)[\"']|\"\1 $add_str\"|" run-tests.php > tmp.php
7070
mv tmp.php run-tests.php
7171
fi
7272

tests/php-7.4.supp

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
<zend_string_equal_val_1>
3+
Memcheck:Cond
4+
fun:zend_string_equal_val
5+
fun:zend_string_equal_content
6+
fun:zend_interned_string_ht_lookup
7+
...
8+
fun:zend_compile_dim
9+
}
10+
11+
{
12+
<zend_string_equal_val_2>
13+
Memcheck:Cond
14+
fun:zend_string_equal_val
15+
fun:zend_string_equal_content
16+
fun:zend_interned_string_ht_lookup
17+
...
18+
fun:zend_compile_top_stmt
19+
}
20+
21+
{
22+
<zend_string_equal_val_3>
23+
Memcheck:Cond
24+
fun:zend_string_equal_val
25+
fun:zend_string_equal_content
26+
fun:zend_interned_string_ht_lookup
27+
...
28+
fun:zend_delayed_compile_var
29+
}
30+
31+
{
32+
<zend_string_equal_val_4>
33+
Memcheck:Cond
34+
fun:zend_string_equal_val
35+
fun:zend_string_equal_content
36+
fun:zend_interned_string_ht_lookup
37+
...
38+
fun:zend_compile_var
39+
}
40+
41+
{
42+
<zend_string_equal_val_5>
43+
Memcheck:Cond
44+
fun:zend_string_equal_val
45+
fun:zend_string_equal_content
46+
...
47+
fun:php_cli_startup
48+
...
49+
}
50+
51+
{
52+
<zend_string_equal_val_6>
53+
Memcheck:Cond
54+
fun:zend_string_equal_val
55+
fun:zend_string_equal_content
56+
fun:zend_hash_find_bucket
57+
...
58+
fun:php_execute_script
59+
...
60+
}
61+
62+
{
63+
<zend_string_equal_val_7>
64+
Memcheck:Cond
65+
fun:zend_string_equal_val
66+
fun:zend_string_equal_content
67+
fun:zend_fast_equal_strings
68+
fun:ZEND_IS_NOT_EQUAL_SPEC_TMPVAR_CONST_JMPZ_HANDLER
69+
...
70+
fun:php_execute_script
71+
...
72+
}
73+
74+
{
75+
<zend_string_equal_val_8>
76+
Memcheck:Cond
77+
fun:zend_string_equal_val
78+
fun:zend_string_equal_content
79+
fun:zend_hash_del
80+
...
81+
fun:zend_hash_apply
82+
fun:zend_startup_modules
83+
}

0 commit comments

Comments
 (0)