# Clarification needed regarding tests/run-test/test005.phpt

- Thread: https://externals.io/message/11587
- Original archive: https://news-web.php.net/php.internals/11587
- Started by Kamesh Jayachandran on 2004-07-28T05:46:40+00:00
- Messages: 3
- 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

---

## #11587 — Kamesh Jayachandran — 2004-07-28T05:46:40+00:00

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

Hi All,
tests/run-test/test005.phpt is failing in PHP-5.0.0 linux.
The log of test execution is pasted below.

---- EXPECTED OUTPUT
string(1) "1"
string(4) "4095"
string(1) "0"
string(1) "1"
string(1) "0"
 `NULL` 
string(%d) "%sivision by zer%s"
---- ACTUAL OUTPUT
string(1) "1"
string(4) "2047"
string(1) "0"
string(1) "1"
string(1) "0"
 `NULL` 
string(16) "Division by zero"
---- FAILED

The only difference I see is in the error_reporting value. 
Which I think 2047 is right as my php.ini says E_ALL. 
And my command line also says the same
php  -d "output_handler=" -d "zlib.output_compression=Off" -d
"open_basedir=" -d "safe_mode=0" -d "disable_functions=" -d
"output_buffering=Off" -d "error_reporting=2047" -d "display_errors=1"
-d "log_errors=0" -d "html_errors=0" -d "track_errors=1" -d
"report_memleaks=1" -d "report_zend_debug=0" -d
"docref_root=/phpmanual/" -d "docref_ext=.html" -d
"error_prepend_string=" -d "error_append_string=" -d
"auto_prepend_file=" -d "auto_append_file=" -d "magic_quotes_runtime=0"
testsuite/tests/run-test/test005.php

Why the testcase is expecting 4095 as I could not find any --INI section
inside the testcase that sets this value to 4095?

With regards
Kamesh Jayachandran

---

## #12102 — Kamesh Jayachandran — 2004-08-12T05:43:20+00:00

URL: https://externals.io/message/11587#12102 · In reply to: #11587

Can someone clarify me on this?

With regards
Kamesh Jayachandran
On Tue, 27 Jul 2004 22:46:40 -0700, "Kamesh Jayachandran"
<kameshj@fastmail.fm> said:
> Hi All,
> tests/run-test/test005.phpt is failing in PHP-5.0.0 linux.
> The log of test execution is pasted below.
> 
> ---- EXPECTED OUTPUT
> string(1) "1"
> string(4) "4095"
> string(1) "0"
> string(1) "1"
> string(1) "0"
> `NULL` 
> string(%d) "%sivision by zer%s"
> ---- ACTUAL OUTPUT
> string(1) "1"
> string(4) "2047"
> string(1) "0"
> string(1) "1"
> string(1) "0"
> `NULL` 
> string(16) "Division by zero"
> ---- FAILED
> 
> The only difference I see is in the error_reporting value. 
> Which I think 2047 is right as my php.ini says E_ALL. 
> And my command line also says the same
> php  -d "output_handler=" -d "zlib.output_compression=Off" -d
> "open_basedir=" -d "safe_mode=0" -d "disable_functions=" -d
> "output_buffering=Off" -d "error_reporting=2047" -d "display_errors=1"
> -d "log_errors=0" -d "html_errors=0" -d "track_errors=1" -d
> "report_memleaks=1" -d "report_zend_debug=0" -d
> "docref_root=/phpmanual/" -d "docref_ext=.html" -d
> "error_prepend_string=" -d "error_append_string=" -d
> "auto_prepend_file=" -d "auto_append_file=" -d "magic_quotes_runtime=0"
> testsuite/tests/run-test/test005.php
> 
> Why the testcase is expecting 4095 as I could not find any --INI section
> inside the testcase that sets this value to 4095?
> 
> With regards
> Kamesh Jayachandran

---

## #12211 — Kamesh Jayachandran — 2004-08-18T07:04:50+00:00

URL: https://externals.io/message/11587#12211 · In reply to: #12102

Can Someone clarify on this?

With regards
Kamesh Jayachandran
On Wed, 11 Aug 2004 22:43:20 -0700, "Kamesh Jayachandran"
<kameshj@fastmail.fm> said:
> Can someone clarify me on this?
> 
> With regards
> Kamesh Jayachandran
> On Tue, 27 Jul 2004 22:46:40 -0700, "Kamesh Jayachandran"
> <kameshj@fastmail.fm> said:
> > […]
