php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67058 substr_compare function bug
Submitted: 2014-04-11 10:13 UTC Modified: 2014-04-11 16:51 UTC
From: ferenczi dot krisztian at gmail dot com Assigned:
Status: Duplicate Package: Strings related
PHP Version: 5.5.11 OS: Debian
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ferenczi dot krisztian at gmail dot com
New email:
PHP Version: OS:

 

 [2014-04-11 10:13 UTC] 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"));



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-11 10:14 UTC] ferenczi dot krisztian at gmail dot com
-Package: Unknown/Other Function +Package: Strings related
 [2014-04-11 10:14 UTC] ferenczi dot krisztian at gmail dot com
Change package
 [2014-04-11 16:51 UTC] aharvey@php.net
-Status: Open +Status: Duplicate
 [2014-04-11 16:51 UTC] aharvey@php.net
Duplicate of bug #67043.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 13:01:29 2024 UTC