Bug #67058 [Opn]: substr_compare function bug

From: Date: Fri, 11 Apr 2014 10:14:41 +0000
Subject: Bug #67058 [Opn]: substr_compare function bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185178@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67058&edit=1 ID: 67058 User updated by: ferenczi dot krisztian at gmail dot com Reported by: ferenczi dot krisztian at gmail dot com Summary: substr_compare function bug Status: Open Type: Bug -Package: Unknown/Other Function +Package: Strings related Operating System: Debian PHP Version: 5.5.11 Block user comment: N Private report: N New Comment: Change package Previous Comments: ------------------------------------------------------------------------ [2014-04-11 10:13:30] ferenczi dot krisztian at gmail dot com Description: ------------ The test script output on Debian: 0 instead of 1 The script works fine on Win7 PHP 5.5.7 Test script: --------------- <?php echo substr_compare("test.com", ".local", -strlen(".local")); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67058&edit=1

« previous php.bugs (#185178) next »