php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61493 Can't remove item when using unset() with a Yaf_Config_Simple instance
Submitted: 2012-03-23 16:30 UTC Modified: 2012-03-24 02:48 UTC
From: littlemiaor at gmail dot com Assigned: laruence (profile)
Status: Closed Package: yaf (PECL)
PHP Version: 5.4.0 OS: ubuntu-10.04.3-server-amd64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: littlemiaor at gmail dot com
New email:
PHP Version: OS:

 

 [2012-03-23 16:30 UTC] littlemiaor at gmail dot com
Description:
------------
Can't remove item when using unset() with a Yaf_Config_Simple instance

Test script:
---------------
<?php

$config = new Yaf_Config_Simple(array(
    'foo' => 'bar',
), false);

unset($config['foo']);
print_r($config);

Expected result:
----------------
Yaf_Config_Simple Object
(
    [_config:protected] => Array
        (
        )

    [_readonly:protected] => 
)

Actual result:
--------------
Yaf_Config_Simple Object
(
    [_config:protected] => Array
        (
            [foo] => bar
        )

    [_readonly:protected] => 
)

Patches

yaf-2.1.9.patch (last revision 2012-03-23 16:30 UTC by littlemiaor at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-24 02:43 UTC] laruence@php.net
-Assigned To: +Assigned To: laruence
 [2012-03-24 02:48 UTC] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=324504
Log: Fix bug #61493 (Can't remove item when using unset() with a Yaf_Config_Simple instance)
#patch by littlemiaor at gmail dot com
 [2012-03-24 02:48 UTC] laruence@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-03-24 02:48 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC