Bug #67058 [Opn->Dup]: substr_compare function bug
| From: | aharvey@php.net | Date: | Fri, 11 Apr 2014 16:51:22 +0000 |
| Subject: | Bug #67058 [Opn->Dup]: substr_compare function bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185182@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
Updated by: aharvey@php.net
Reported by: ferenczi dot krisztian at gmail dot com
Summary: substr_compare function bug
-Status: Open
+Status: Duplicate
Type: Bug
Package: Strings related
Operating System: Debian
PHP Version: 5.5.11
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #67043.
Previous Comments:
------------------------------------------------------------------------
[2014-04-11 10:14:41] ferenczi dot krisztian at gmail dot com
Change package
------------------------------------------------------------------------
[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