1--TEST--
2Test chunk_split() function : usage variations - unexpected large '$end' string argument variation 1
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
6if (getenv("USE_ZEND_ALLOC") === "0") die("skip ZMM is disabled");
7?>
8--FILE--
9<?php
10echo "*** Testing chunk_split() : unexpected large 'end' string argument variation 1 ***\n";
11
12$a=str_repeat("B", 65535);
13$b=1;
14$c=str_repeat("B", 65535);
15var_dump(chunk_split($a,$b,$c));
16?>
17--EXPECTF--
18*** Testing chunk_split() : unexpected large 'end' string argument variation 1 ***
19
20Fatal error: %rAllowed memory size of %d bytes exhausted%s\(tried to allocate %d bytes\)|Possible integer overflow in memory allocation \(4294901777 \+ 2097152\)%r in %s on line %d
21