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

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: Fri Dec 27 03:01:28 2024 UTC