1--TEST-- 2strnat(case)cmp(): potential OOB access for unterminated strings 3--EXTENSIONS-- 4zend_test 5--FILE-- 6<?php 7$a = zend_create_unterminated_string('333'); 8$b = zend_create_unterminated_string('333 '); 9var_dump( 10 strnatcmp($a, $b), 11 strnatcasecmp($b, $a) 12); 13zend_terminate_string($a); 14zend_terminate_string($b); 15?> 16--EXPECT-- 17int(-1) 18int(1) 19