Skip to content

Commit bf7c013

Browse files
committed
Fix ext/soap
soap_qname_crash.phpt builds a string larger than 2GB, which a 32-bit address space cannot reliably hold, but its skip guard keyed on PHP_INT_SIZE, which is 8 where zend_long is wider than size_t. Key it on PHP_SYS_SIZE instead. It failed with an out of memory error on LINUX_X32_INT64.
1 parent 5b0ce29 commit bf7c013

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ext/soap/tests/soap_qname_crash.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ soap
55
--SKIPIF--
66
<?php
77
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
8-
if (PHP_INT_SIZE != 8) die("skip: 64-bit only");
8+
if (PHP_SYS_SIZE != 8) die("skip: 64-bit only");
99
?>
1010
--INI--
1111
memory_limit=6144M

0 commit comments

Comments
 (0)