1--TEST--
2Test chunk_split() function : usage variations - unexpected large number of chunks
3--SKIPIF--
4<?php
5if (getenv("USE_ZEND_ALLOC") === "0") die("skip ZMM is disabled");
6?>
7--FILE--
8<?php
9$chunk_length = 1;
10
11echo "*** Testing chunk_split() : unexpected large 'end' string argument variation 2 ***\n";
12
13echo "Body generation\n";
14$body = str_repeat("Hello", 10000000);
15
16echo "Using chunk_split()\n";
17var_dump(chunk_split($body, $chunk_length));
18?>
19--EXPECTF--
20*** Testing chunk_split() : unexpected large 'end' string argument variation 2 ***
21Body generation
22Using chunk_split()
23
24Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
25