Edit report at http://bugs.php.net/bug.php?id=51307&edit=1
ID: 51307
Updated by: pajoye@php.net
Reported by: joerg dot klein at ifsam dot lu
Summary: php.exe error on command line
Status: Feedback
Type: Bug
Package: Unknown/Other Function
Operating System: Windows Server 2003
PHP Version: 5.3.2
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-03-16 15:48:55] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
I can't reproduce any crash with the code you have provided. Please
provide a backtrace if you can, that should be a start.
------------------------------------------------------------------------
[2010-03-16 15:46:06] joerg dot klein at ifsam dot lu
as I stated above: Ignore the runtime errors, I have reduced the code as
much as possible to track down the problem.
With the correct and complete source code, the same error occurs.
------------------------------------------------------------------------
[2010-03-16 15:43:36] joerg dot klein at ifsam dot lu
I wasn't referering to a specific line. I removed step-by-step all lines
which produces no error.
I tried to reproduce a one file script without success.
I think the error depends on including files and the length of the
filenames/Directories. When I shorten the dir- or the filename, the
error is gone.
------------------------------------------------------------------------
[2010-03-16 15:39:31] pajoye@php.net
btw, try to fix your code while being at it:
Warning: in_array() expects parameter 2 to be array, null given in
C:\test\51307\error_handler.php on line 31
Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in
C:\test\51307\error_handler.php on line 39
Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in
C:\test\51307\error_handler.php on line 55
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:"
header missing in C:\test\51307\error_handler.php on line 116
Warning: in_array() expects parameter 2 to be array, null given in
C:\test\51307\error_handler.php on line 119
<font color="red"><b>Error</b>: Use of undefined constant require_path -
assumed 'require_path' in <b>C:\test\51307\conf.php</b> on line
<b>2</b><br></font><br>
------------------------------------------------------------------------
[2010-03-16 15:33:06] pajoye@php.net
Not sure what's wrong.
Which line are you referering to in your initial comment?
Please try to create a one file script to reproduce the error.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51307
--
Edit this bug report at http://bugs.php.net/bug.php?id=51307&edit=1