php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74209 dio_stat - appended nulls
Submitted: 2017-03-05 15:23 UTC Modified: 2017-03-25 10:52 UTC
From: phpbugs at caspertech dot co dot uk Assigned: remi (profile)
Status: Closed Package: dio (PECL)
PHP Version: 7.1.2 OS: Linux/Gentoo
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpbugs at caspertech dot co dot uk
New email:
PHP Version: OS:

 

 [2017-03-05 15:23 UTC] phpbugs at caspertech dot co dot uk
Description:
------------
With dio 0.0.9, nulls are appended to the array keys in the return value of dio_stat.



Test script:
---------------
if (isset($info['size']))
{
    echo "No bug";
}
elseif (isset($info["size\0"]))
{
    echo "Bug";
}

Expected result:
----------------
In earlier versions of dio, there was no null character at the end of the returned array keys from dio_stat

Actual result:
--------------
In dio version v0.0.9, there is a null character at the end of the returned array keys from dio_stat

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-25 10:52 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=pecl/system/dio.git;a=commit;h=a84e287ac9c450004757abcbdaf3b352af08cb0d
Log: Fixed Bug #74209 dio_stat - appended nulls (Remi)
 [2017-03-25 10:52 UTC] remi@php.net
-Status: Open +Status: Closed
 [2017-03-25 10:52 UTC] remi@php.net
-Assigned To: +Assigned To: remi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC