#47046 [NEW]: Ass equivalent of array_merge() for SplObjectStorage
| From: | karsten at typo3 dot org | Date: | Fri, 09 Jan 2009 10:29:59 +0000 |
| Subject: | #47046 [NEW]: Ass equivalent of array_merge() for SplObjectStorage | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-132680@lists.php.net to get a copy of this message | ||
From: karsten at typo3 dot org
Operating system: Mac OS X 10.5.6
PHP version: 5.3.0alpha3
PHP Bug Type: Feature/Change Request
Bug description: Ass equivalent of array_merge() for SplObjectStorage
Description:
------------
SplObjectStorage is a great replacement for arrays when it comes to
storing objects. But with arrays one could use array_merge to combine
sets, for SplObjectStorage there is no such simple way. Resorting to a
foreach/attach loop seems cumbersome and is probably slower than an
internal solution would be.
I could imagine to have a merge() method on SplObjectStorage. It should
directly modify the called object by merging the given argument.
--
Edit bug report at http://bugs.php.net/?id=47046&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47046&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47046&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47046&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47046&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47046&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47046&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47046&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47046&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47046&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47046&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47046&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47046&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47046&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47046&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47046&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47046&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47046&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47046&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47046&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47046&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47046&r=mysqlcfg