Debian Bug report logs -
#499031
Problem with object implementing ArrayAccess in a foreach loop
Reported by: Roy de Boer <roy@infi.nl>
Date: Mon, 15 Sep 2008 18:54:02 UTC
Severity: normal
Tags: upstream
Found in version php5/5.2.0-8+etch11
Fixed in version 5.4.4-14
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Forwarded to http://bugs.php.net/34445
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#499031; Package libapache2-mod-php5.
(full text, mbox, link).
Acknowledgement sent to Roy de Boer <roy@infi.nl>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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.
Regards,
Roy de Boer
INFI B.V.
Vondellaan 140
3521 GH Utrecht
t 030-2325888
f 030-2803959
m 06-41269434
http://www.infi.nl
[Message part 2 (text/html, inline)]
Tags added: upstream
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Mon, 15 Sep 2008 22:06:05 GMT) (full text, mbox, link).
Noted your statement that Bug has been forwarded to http://bugs.php.net/34445.
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Mon, 15 Sep 2008 22:06:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#499031; Package libapache2-mod-php5.
(Mon, 30 Jan 2012 18:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Mickael Wolff <mickael@lupusmic.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Mon, 30 Jan 2012 18:33:03 GMT) (full text, mbox, link).
Message #14 received at 499031@bugs.debian.org (full text, mbox, reply):
Actually, when you implement offsetGet, if the returned value is an
array, it will be returned by value. There is two solution to work
arround: use an object that implements ArrayAccess instead of a scalar
array; alter offsetGet signature to return a reference.
--
Mickaël Wolff aka Lupus Michaelis
Racine<http://lupusmic.org>
Blog<http://blog.lupusmic.org>
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Fri, 04 Jul 2014 12:12:10 GMT) (full text, mbox, link).
Notification sent
to Roy de Boer <roy@infi.nl>:
Bug acknowledged by developer.
(Fri, 04 Jul 2014 12:12:11 GMT) (full text, mbox, link).
Message #19 received at 499031-done@bugs.debian.org (full text, mbox, reply):
Version: 5.4.4-14
Hey all,
I am closing the bugs that were filled against php5 5.3 in Debian
oldstable
(well and earlier)...
Feel free to reopen the bug in you can reproduce it with php5 from
current
stable Debian release.
Cheers,
--
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 02 Aug 2014 07:28:06 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 03:40:26 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.