|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-09-07 13:19 UTC] mahesh dot vemula at in dot ibm dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Wed Oct 29 09:00:01 2025 UTC | 
Description: ------------ strncmp() of a regular string(as first argument) with an empty string, returns an integer value of difference in their length when Unicode is OFF, and returns int(+1) when the Unicode is ON. Is this the expected behavior according to documentation, which says strncmp() returns >0 or <0 when two strings are not equal. Or Could output be consistent with and without Unicode? Reproduce code: --------------- --TEST-- --FILE-- <?php var_dump( strncmp("Hello", "", 10) ); ?> --EXPECTF--