# PHP (anti) crash policy?

- Thread: https://externals.io/message/13115
- Original archive: https://news-web.php.net/php.internals/13115
- Started by Olaf van der Spek on 2004-10-03T09:25:59+00:00
- Messages: 7
- 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

---

## #13115 — Olaf van der Spek — 2004-10-03T09:25:59+00:00

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

Hi,

What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?

---

## #13117 — Derick Rethans — 2004-10-03T12:38:24+00:00

URL: https://externals.io/message/13115#13117 · In reply to: #13115

> What is the PHP policy regaring crashes and fatal errors?
> Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?

Only on a stack overflow, as in:

function a() { a(); }
a();

Derick

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

---

## #13118 — Olaf van der Spek — 2004-10-03T13:12:15+00:00

URL: https://externals.io/message/13115#13118 · In reply to: #13117

Derick Rethans wrote:
> 
> 
> > […]
> 
> Only on a stack overflow, as in:

Are there any plans to fix/improve this situation?
Isn't it possible to check stack size left before allocating a new stack 
frame?

> 
> function a() { a(); }
> a();
> 
> Derick

---

## #13119 — Olaf van der Spek — 2004-10-03T13:14:02+00:00

URL: https://externals.io/message/13115#13119 · In reply to: #13117

Derick Rethans wrote:

> 
> 
> > […]
> 
> Only on a stack overflow, as in:

What about out of memory conditions (in for example gzinflate)?

---

## #13120 — Derick Rethans — 2004-10-03T13:19:27+00:00

URL: https://externals.io/message/13115#13120 · In reply to: #13118

> Derick Rethans wrote:
> > […]
>
> Are there any plans to fix/improve this situation?
> Isn't it possible to check stack size left before allocating a new stack
> frame?

No, this is not possible. Please read the archives for reasons.

Derick

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

---

## #13121 — Olaf van der Spek — 2004-10-03T13:37:38+00:00

URL: https://externals.io/message/13115#13121 · In reply to: #13120

Derick Rethans wrote:
> 
> 
> 
> > […]
> 
> 
> No, this is not possible. Please read the archives for reasons.

Do you know the subjects of the threads in which this was discussed?
Searching for "stack overflow" or "infinite recursion" gives many 
results, but I can't find the posts in which you explained why it can't 
be done.
> 
> Derick

---

## #13131 — Olaf van der Spek — 2004-10-04T10:03:23+00:00

URL: https://externals.io/message/13115#13131 · In reply to: #13120

Derick Rethans wrote:

> 
> 
> 
> > […]
> 
> 
> No, this is not possible. Please read the archives for reasons.

And don't you think this should be mentioned in the documentation?
It's a rather important issue IMO.
> 
> Derick
