php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41787 not view the correct code in the browser
Submitted: 2007-06-24 11:22 UTC Modified: 2007-07-01 21:20 UTC
From: d58m at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.4 OS: windows 2000 Professional
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: d58m at hotmail dot com
New email:
PHP Version: OS:

 

 [2007-06-24 11:22 UTC] d58m at hotmail dot com
Description:
------------
OS: windows 2000 professional 
software used: Apache2.2 PHP5.2.3
Browser: IE 6.0.2800.1106

1. Type the address into the address: http://localhost/test/s.php   and pressed return.
2. I get a blank page in the browser no text display in the browser.
3. Right clicked on the page and get the code in the "Reproduce code: form". It should be the code in the "Actual result: form"  tech.

I was working up to 25/05/07 then it stopped.


Reproduce code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Expected result:
----------------
<marquee>site under construction</marquee><br />
<a href="index.html">link to index page </a>


Actual result:
--------------
--------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<marquee>site under construction</marquee><br />
<a href="index.html">link to index page </a>
</body>
</html>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-27 16:15 UTC] tony2001@php.net
Thanks, but I asked for a backtrace, no need to resubmit disassembly, it's completely useless.

>So therefore I get a different result than your out of date MSVC6
>progtramme, when I comes to debugging.

Right, and we'd like to see that different result.
 [2007-06-29 12:13 UTC] sniper@php.net
Try reading this page once more and look for 'call stack':
http://bugs.php.net/bugs-generating-backtrace-win32.php

 [2007-06-29 12:19 UTC] d58m at hotmail dot com
call stack
>php5ts.dll!_zend_hash_add_or_update()  + 0x10e
 [2007-06-29 12:54 UTC] sniper@php.net
Are you able to reproduce this on command line using PHP CLI binary?
And have you tried using PHP CGI binary instead of the apache module?
 [2007-06-29 13:24 UTC] d58m at hotmail dot com
Are you able to reproduce this on command line using PHP CLI binary?

I have looked for the file "PhP CLI binary" and I have found nothing how do I invoke the file and what is the proper name of the file Tech.
 [2007-06-29 15:18 UTC] sniper@php.net
Maybe this could help you providing us something useful:
http://blog.thepimp.net/index.php/post/2007/06/10/debug-pack-or-how-to-generate-backtrack-on-windows-without-compiling

And DON'T reopen this before you have something useful to give as feedback!
 [2007-06-29 18:53 UTC] d58m at hotmail dot com
I hope that you fine this data useful in diagnosing my problem?

Thread 251 - System ID 3672
Entry point   Msvcrt!_beginthreadex+6b 
Create time   29/06/2007 07:11:54 PM 
Time spent in user mode   0 Days 0:0:0.15 
Time spent in kernel mode   0 Days 0:0:0.0 

Function     				Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_hash_add_or_update+11a      0961b84c  09618ed0  00000005    
php5ts!php_register_variable_ex+6c8     00000000  00000000  00000000    

Thread 0 - System ID 3748
Entry point   httpd+1e9f 
Create time   29/06/2007 06:35:03 PM 
Time spent in user mode   0 Days 0:0:0.281 
Time spent in kernel mode   0 Days 0:0:0.218 
--------------------------------
Function     					Arg 1     Arg 2     Arg 3   Source 
NTDLL!KiRaiseUserExceptionDispatcher+38     	7c577ef0  00000274  0006fee0    
NTDLL!NtClose+b     				00000274  0006fee0  0204662b    
KERNEL32!CloseHandle+4f     			00000274  02047f6c  00000274    
php_apc+662b     				00239ff0  00239fe0  0023bf10    
libapr_1!apr_pool_clear+2b     			00239fe0  00000072  006d0065    
httpd+163b     					00000003  00232750  00232b28    
httpd+1f82     					00000072  006d0065  7ffdf000    
KERNEL32!BaseProcessStart+3d     		00401e9f  00000000  000000c8 
------------------------------------------
Thread 0 - System ID 472
Entry point   httpd+1e9f 
Create time   29/06/2007 07:06:36 PM 
Time spent in user mode   0 Days 0:0:0.484 
Time spent in kernel mode   0 Days 0:0:0.328 
-----------------------------------------
Function     					Arg 1     Arg 2     Arg 3   Source 
NTDLL!KiRaiseUserExceptionDispatcher+38     	7c577ef0     00000274     0006fee0    
NTDLL!NtClose+b     				00000274     0006fee0     0661662b    
KERNEL32!CloseHandle+4f     			00000274     06611aa0     00000274    
php_apc+662b     				00239ff0     00239fe0     0023bf10    
libapr_1!apr_pool_clear+2b     			00239fe0     00720044     00760069    
httpd+163b     					00000003     00232750     00232b28    
httpd+1f82     					00720044     00760069     7ffdf000    
KERNEL32!BaseProcessStart+3d     		00401e9f     00000000     000000c8    
------------------------------------- 
Thread 0 - System ID 696
Entry point   httpd+1e9f 
Create time   29/06/2007 11:26:30 AM 
Time spent in user mode   0 Days 0:0:2.328 
Time spent in kernel mode   0 Days 0:0:1.984 

Function     					Arg 1     Arg 2     Arg 3   Source 
NTDLL!KiRaiseUserExceptionDispatcher+38     	7c577ef0     00000270     0006fee0    
NTDLL!NtClose+b     				00000270     0006fee0     0142662b    
KERNEL32!CloseHandle+4f     			00000270     01421aa0     00000270    
php_apc+662b     				00239ff0     00239fe0     0023bf10    
libapr_1!apr_pool_clear+2b     			00239fe0     00740070     004d0070    
httpd+163b     					00000003     00232750     00232b28    
httpd+1f82     					00740070     004d0070     7ffdf000    
KERNEL32!BaseProcessStart+3d     		00401e9f     00000000     000000c8   
----------------------------------
Thread 0 - System ID 3560
Entry point   httpd+1e9f 
Create time   29/06/2007 07:15:13 PM 
Time spent in user mode   0 Days 0:0:0.203 
Time spent in kernel mode   0 Days 0:0:0.203 

Function     					Arg 1     Arg 2     Arg 3   Source 
NTDLL!KiRaiseUserExceptionDispatcher+38     	7c577ef0     00000270     0006fee0    
NTDLL!NtClose+b     				00000270     0006fee0     0204662b    
KERNEL32!CloseHandle+4f     			00000270     02041aa0     00000270    
php_apc+662b     				00239ff0     00239fe0     0023bf10    
libapr_1!apr_pool_clear+2b     			00239fe0     00000072     006d0065    
httpd+163b     					00000003     00232750     00232b28    
httpd+1f82     					00000072     006d0065     7ffdf000    
KERNEL32!BaseProcessStart+3d     		00401e9f     00000000     000000c8   
----------------------------------------
Thread 252 - System ID 1064
Entry point   Msvcrt!_beginthreadex+6b 
Create time   29/06/2007 01:34:48 PM 
Time spent in user mode   0 Days 0:0:0.15 
Time spent in kernel mode   0 Days 0:0:0.46 

Function     					Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_hash_add_or_update+11a     		0931b84c     09318ed0     00000005    
php5ts!php_register_variable_ex+6c8    		00000000     00000000     00000000 
-----------------------------------------
Thread 252 - System ID 3048
Entry point   Msvcrt!_beginthreadex+6b 
Create time   29/06/2007 07:15:27 PM 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.15 

Function     					Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_hash_add_or_update+11a     		0931b84c     09318ed0     00000005    
php5ts!php_register_variable_ex+6c8     	00000000     00000000     00000000
 [2007-06-30 16:03 UTC] sniper@php.net
Do you understand what "command line" means?
You open the shell and run 'php.exe yourscript.php'..

 [2007-06-30 16:03 UTC] sniper@php.net
Also, what exactly is in that script of yours?
 [2007-06-30 17:38 UTC] 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
 [2007-07-01 01:48 UTC] sniper@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.


 [2007-07-01 11:22 UTC] 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>&nbsp;</p>
 <p>&nbsp;</p>
 <p><a href="calc.html">Calc</a></p>
 </body>
</html>
 [2007-07-01 13:02 UTC] sniper@php.net
You're just installed PHP wrong or something like that. I can't reproduce this with latest CVS on any system.
 [2007-07-01 13:34 UTC] d58m at hotmail dot com
You're just installed PHP wrong or something like that. I can't
reproduce this with latest CVS on any system.
----------------------------
Please can you sent me the your installation process for php ver 5.2.4 for windows professional 2ooo so that I can check against me installation:
   apache_2.2.4-win32-x86-no_ssl lasted version.
1. Double click on PHP-5.2-Windows-installer-latest.
2. I accept the the terms in the licence Agreement.
3. C:\Program Files\PhP\
4. Apache 2.2x module
5. C\Apache Software foundation\Apache2.2\Conf\
6. Choose Items to install select all.
7. Install button clicked ok.
8. No installing errors.
 [2007-07-01 13:41 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2007-07-01 17:22 UTC] scottmac@php.net
I suggest you don't accept all and chose the bare minimum you need.

php_iisfunc.dll, php_sam.dll and php_threads.dll appear to be causing breakages and should probably be removed from the installer until they are sorted.
 [2007-07-01 20:39 UTC] d58m at hotmail dot com
I suggest you don't accept all and chose the bare minimum you need.

php_iisfunc.dll, php_sam.dll and php_threads.dll appear to be causing
breakages and should probably be removed from the installer until they
are sorted.
--------------
My teacher webpage developer show how to pick the appropriate windows 
php software to be installed in windows and apache software too. Then 
he show me how to installed PhP software and apache software in windows so therefore, I knew it was not installation errors. 

Up to then I was searching the web and read books and came up short because your software is developing so fast I was making errors installing the software and there was no help on your website for beginners only professions who are using server. 

When will you be up dating these dll files to remove the bugs?
php_iisfunc.dll, php_sam.dll and php_threads.dll
 [2007-07-01 21:20 UTC] sniper@php.net
This is not the place to report bugs in PECL extensions. Report them at http://pecl.php.net/bugs/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 08:01:26 2024 UTC