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
 [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)

Pull Requests

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: Thu Dec 26 13:01:30 2024 UTC