# php-src/tests/lang/038.phpt fails on php-5.0.3

- Thread: https://externals.io/message/14335
- Original archive: https://news-web.php.net/php.internals/14335
- Started by Kamesh Jayachandran on 2005-01-11T09:39:26+00:00
- Messages: 1
- 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

---

## #14335 — Kamesh Jayachandran — 2005-01-11T09:39:26+00:00

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

Hi All,
php-src/tests/lang/038.phpt(Convert warnings to exceptions) this
testcase used to succeed in php-5.0.2 and old but not on php-5.0.3.
Seems that exception_object->getTrace() now returns an array of size 3
with first 2 entries corresponding to Error2Exception and last one
corresponding to fopen. Earlier this used to return array of size 2.
Changing the 
	var_dump($trace[1]['function']);
to 
	var_dump($trace[2]['function']); will make the testcase go through.
Still I am interested in knowing the reason behind three entries in
getTrace() return value.

With regards
Kamesh Jayachandran
