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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 10:01:32 2025 UTC