[php-maint] Bug#499031: Problem with object implementing ArrayAccess in a foreach loop

Roy de Boer roy at infi.nl
Mon Sep 15 14:56:48 UTC 2008

Package: libapache2-mod-php5
Version: 5.2.0-8+etch11

It seems that bug http://bugs.php.net/bug.php?id=34445 is present in  
libapache2-mod-php5, 5.2.0-8+etch11:

e.g. dataPoint implements ArrayAccess, but
   foreach($dataPoint['medicatie'] as $medicijn) {
results in an error (Fatal error: Objects used as arrays in post/pre  
increment/decrement must return values by reference in), while
   foreach(($a=$dataPoint['medicatie']) as $medicijn) {
works just fine.

Also, other php versions (for example the Ubuntu php,  
5.1.6-1ubuntu2.1) do not have problems with the first version.


Roy de Boer

Vondellaan 140
3521 GH Utrecht
t 030-2325888
f 030-2803959
m 06-41269434

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20080915/16aee424/attachment.htm 

More information about the pkg-php-maint mailing list