# 5.0.4 refcounting bug?

- Thread: https://externals.io/message/16940
- Original archive: https://news-web.php.net/php.internals/16940
- Started by Joe Orton on 2005-06-27T15:06:41+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16940 — Joe Orton — 2005-06-27T15:06:41+00:00

URL: https://externals.io/message/16940#16940

We're getting a lot of reports from Fedora Core 4 users that the shipped 
PHP 5.0.4 is triggering some refcounting bug breaking some common apps; 
the attached file is a repro case which triggers the segfault after 
following the link.

I've traced this through and it seems that the refcount on 
PS(http_session_vars) prematurely drops to zero on leaving the foreach() 
loop, but haven't looked any further.  Does this ring any bells with 
anyone?  It seems to work OK in the 5.1.0 beta2 release but I can't see 
anything relevant mentioned explicitly in NEWS, and I'm not sure if 
we'll be able to ship 5.1.0 as an update for FC4 since it breaks binary 
module compatibility...

Regards,

joe

---

## #16941 — Pierre-Alain Joye — 2005-06-27T15:13:16+00:00

URL: https://externals.io/message/16940#16941 · In reply to: #16940

On Mon, 27 Jun 2005 16:06:41 +0100
jorton@redhat.com (Joe Orton) wrote:

> We're getting a lot of reports from Fedora Core 4 users that the
> shipped PHP 5.0.4 is triggering some refcounting bug breaking
> some common apps; the attached file is a repro case which
> triggers the segfault after following the link.

You have to use .txt attachment here, everything else is removed.

--Pierre

---

## #16942 — Derick Rethans — 2005-06-27T15:19:43+00:00

URL: https://externals.io/message/16940#16942 · In reply to: #16941

> You have to use .txt attachment here, everything else is removed.

He did - i saw the attachment ;-)

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16943 — Stefan Esser — 2005-06-27T15:21:01+00:00

URL: https://externals.io/message/16940#16943 · In reply to: #16941

>
>
>You have to use .txt attachment here, everything else is removed.
>  
>
Not really... I got his file.

Stefan
