Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152933 - <dev-lang/php-5.2.0 - unsetting key of foreach() yields segmentation fault
Summary: <dev-lang/php-5.2.0 - unsetting key of foreach() yields segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL: http://bugs.php.net/bug.php?id=39099 ...
Whiteboard:
Keywords:
: 153424 (view as bug list)
Depends on: 166048
Blocks:
  Show dependency tree
 
Reported: 2006-10-26 16:03 UTC by Marcin Gryszkalis
Modified: 2007-03-05 18:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Gryszkalis 2006-10-26 16:03:34 UTC
There's bug in php that causes crash of apache child. It's fixed in php 5.2, there's also phpmyadmi specific patch (phpmyadmin is one on applications that trigger that bug).

Patch (for phpmyadmin) is available:
http://sourceforge.net/tracker/index.php?func=detail&aid=1569123&group_id=23067&atid=377408

There's note at
http://wiki.cihar.com/pma/phpMyAdmin_2.9.0.2

PHP bug:
http://bugs.php.net/bug.php?id=39036

More info from oryginal reporter:
http://www.anst.uu.se/bwiberg/php/foreach_segfault.php.txt

I think phpmyadmin should be patched as php 5.2 won't be stable soon (I guess)...
Comment 1 Luca Longinotti (RETIRED) gentoo-dev 2006-10-26 16:47:41 UTC
Web-Apps: please patch PHPMyAdmin to fix this, thanks!
The fix in PHP 5.1 is unclear (no particular CVS entry, changelog etc., and those functions are normally very connected to the ZendEngine, which got many changes in 5.2 that aren't backportable to 5.1), so we'll just wait for PHP 5.2 to fix this in PHP (should hit Portage in a week or so, and be stable about a month after).
Best regards, CHTEKK.
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2006-10-26 18:36:39 UTC
phpmyadmin done
Comment 3 Marcin Gryszkalis 2006-10-28 11:36:23 UTC
Tested, seems to be ok.
Comment 4 Marcin Gryszkalis 2006-10-28 13:50:19 UTC
I just noticed that this bug is now not phpmyadmin specific, so I'm not sure if it should be closed. Maybe we should have another bug filled and dependency set?
I just wanted to confirm that new release of phpmyadmin fixes (well, dodges at least) this bug...
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-10-30 11:59:46 UTC
*** Bug 153424 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-10-30 12:01:03 UTC
Reopening this one for testing the patch in Bug 153424 Comment #2 
Comment 7 Conrad Kostecki gentoo-dev 2006-11-16 04:25:18 UTC
Will be there PHP 5.2 in Portage?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-12-09 05:19:00 UTC
(In reply to comment #7)
> Will be there PHP 5.2 in Portage?

Not until 5.2.1 is released, at least. 

Comment 9 Conrad Kostecki gentoo-dev 2006-12-24 05:44:21 UTC
Hm, why?
Could you explain?
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-12-24 05:57:41 UTC
(In reply to comment #9)
> Hm, why?
> Could you explain?

Because we have no desire or time to maintain 70+ patches for 5.2.0

Comment 11 Láďa Durchánek 2007-02-05 12:26:03 UTC
(In reply to comment #10)
>
> Because we have no desire or time to maintain 70+ patches for 5.2.0
> 

PHP 5.2.0 is so much broken?
Comment 12 Till Klampaeckel 2007-02-07 14:47:14 UTC
Sorry to bug, but after two months - what are the 70 patches for?
Comment 13 Johan Bergström 2007-02-09 10:31:05 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Will be there PHP 5.2 in Portage?
> 
> Not until 5.2.1 is released, at least. 
> 

5.2.1 is released! no 0-day ebuild request yet though :(
Comment 14 Luca Longinotti (RETIRED) gentoo-dev 2007-03-05 18:10:53 UTC
dev-lang/php-5.2.1-r3 is in the tree, enjoy!
Best regards, CHTEKK.