ID: 41787
Updated by: [EMAIL PROTECTED]
Reported By: d58m at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: windows 2000 Professional
PHP Version: 5.2.4
New Comment:
You're just installed PHP wrong or something like that. I can't
reproduce this with latest CVS on any system.
Previous Comments:
------------------------------------------------------------------------
[2007-07-01 11:22:36] d58m at hotmail dot com
I am working my way through a book called PHP 5 in easy steps
ISBN 1-84078-282-x very basic, my webpage teacher recommended.
----------------------------------
I have typed this programme and get an error: The page cannot be
displayed.
<?php phpinfo();?>
---------------------------------
This programme in two parts will generate the bug that I report to
you.
<html>
<head>
<title>Calculation Form</title>
</head>
<body>
<form action = "calc.php" method = "post">
Value 1: <input type = "text" name = "val1" size = "10">
Value 2: <input type = "text" name = "val2" size = "10">
<br>
Calculation: <br>
<input type = "radio" name = "calc" value = "add"> Add
<input type = "radio" name = "calc" value = "sub"> Subtract
<input type = "radio" name = "calc" value = "mul"> Multiply
<input type = "radio" name = "calc" value = "div"> Divide
<hr>
<input type = "submit" value = "Calculate">
<input type = "reset" value = "Clear">
</form>
</body>
</html>
-----------------------------
<!-- example for PHP 5.0.0 final release -->
<html>
<head>
<title>Calculation Result</title>
</head>
<body>
<p>
<?php
$val1 = $_POST['val1'];
$val2 = $_POST['val2'];
$calc = $_POST['calc'];
if( is_numeric( $val1 ) && is_numeric( $val2 ) )
{
if( $calc != null )
{
switch( $calc )
{
case "add" : $result = $val1 + $val2; break;
case "sub" : $result = $val1 - $val2; break;
case "mul" : $result = $val1 * $val2; break;
case "div" : $result = $val1 / $val2; break;
}
echo( "Calculation result: $result" );
}
}
else
{
echo( "Invalid entry - please retry" );
}
?>
</p>
<p> </p>
<p> </p>
<p><a href="calc.html">Calc</a></p>
</body>
</html>
------------------------------------------------------------------------
[2007-07-01 01:48:33] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2007-06-30 17:38:02] d58m at hotmail dot com
DebugDiag 1.1 (x86) Report:
Thread 0 - System ID 3720
Entry point php+2fc2
Create time 30/06/2007 05:16:18 PM
Time spent in user mode 0 Days 00:00:00.031
Time spent in kernel mode 0 Days 00:00:00.01
Thread 1 - System ID 2896
Entry point KERNEL32!BaseAttachComplete
Create time 30/06/2007 05:17:27 PM
Time spent in user mode 0 Days 00:00:00.00
Time spent in kernel mode 0 Days 00:00:00.00
Thread 2 - System ID 2920
Entry point 0x85e0bc88
Create time 30/06/2007 05:18:24 PM
Time spent in user mode 0 Days 00:00:00.00
Time spent in kernel mode 0 Days 00:00:00.00
Thread 0 - System ID 3720
Entry point php+2fc2
Create time 30/06/2007 05:16:18 PM
Time spent in user mode 0 Days 00:00:00.031
Time spent in kernel mode 0 Days 00:00:00.015
Thread 1 - System ID 2896
Entry point 0x00000000
Create time 30/06/2007 05:17:27 PM
Time spent in user mode 0 Days 00:00:00.00
Time spent in kernel mode 0 Days 00:00:00.00
Thread 2 - System ID 2920
Entry point 0x85e0bc88
Create time 30/06/2007 05:18:24 PM
Time spent in user mode 0 Days 00:00:00.00
Time spent in kernel mode 0 Days 00:00:00.00
--------------------------------------------------
If you double clicked on PhP.exe file you get these dll errors:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_exif.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_oci8.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_pdo_oci.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_pdo_oci8.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_pdo_sqlite_external.dll' - The specified module could not be
found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_pspell.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_sybase_ct.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_ibm_db2.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_ifx.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_ingres.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_maxdb.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_mcve.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_netools.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_oracle.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_pdo_ibm.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_pdo_informix.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program
Files\PHP\
ext\php_svn.dll' - The specified module could not be found.
in Unknown on line 0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
PHP Notice: Constant XML_ELEMENT_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_ATTRIBUTE_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_TEXT_NODE already defined in Unknown on line
0
PHP Notice: Constant XML_CDATA_SECTION_NODE already defined in Unknown
on line 0
PHP Notice: Constant XML_ENTITY_REF_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_ENTITY_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_PI_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_COMMENT_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_DOCUMENT_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown
on line 0
PHP Notice: Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown
on line 0
PHP Notice: Constant XML_NOTATION_NODE already defined in Unknown on
line 0
PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown
on line 0
PHP Notice: Constant XML_DTD_NODE already defined in Unknown on line
0
PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown
on line 0
PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in
Unknown on line 0
PHP Notice: Constant XML_ENTITY_DECL_NODE already defined in Unknown
on line 0
PHP Notice: Constant XML_NAMESPACE_DECL_NODE already defined in
Unknown on line 0
PHP Notice: Constant XML_LOCAL_NAMESPACE already defined in Unknown on
line 0
PHP Notice: Constant XML_ATTRIBUTE_CDATA already defined in Unknown on
line 0
PHP Notice: Constant XML_ATTRIBUTE_ID already defined in Unknown on
line 0
PHP Notice: Constant XML_ATTRIBUTE_IDREF already defined in Unknown on
line 0
PHP Notice: Constant XML_ATTRIBUTE_IDREFS already defined in Unknown
on line 0
PHP Notice: Constant XML_ATTRIBUTE_ENTITY already defined in Unknown
on line 0
PHP Notice: Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown
on line 0
PHP Notice: Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown
on line 0
PHP Notice: Constant XML_ATTRIBUTE_ENUMERATION already defined in
Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NOTATION already defined in Unknown
on line 0
PHP Warning: require_once(SAM/php_sam.php): failed to open stream: No
such file
or directory in sam_factory on line 1
PHP Fatal error: require_once(): Failed opening required
'SAM/php_sam.php' (inc
lude_path='.;C:\php5\pear') in sam_factory on line 1
------------------------------------------------------------------------
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/41787
--
Edit this bug report at http://bugs.php.net/?id=41787&edit=1