php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31275 PHP Crashes randomly
Submitted: 2004-12-23 22:53 UTC Modified: 2005-01-14 19:50 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: smartychan at hotmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4CVS-2005-01-10 OS: Windows XP Professional
Private report: No CVE-ID: None
 [2004-12-23 22:53 UTC] smartychan at hotmail dot com
Description:
------------
Hi,

I have an Apache 2, PHP on windows XP pro.  They're all installed properly. When I run a php script that is big, it will crash. It will then display The Page Cannot be Displayed (Cannot find server or DNS Error). I tried all 4.3 versions and 5.0, and all versions of apache, and reformatted computer.  For example, when I use "include" and include a big regular html file with many words, php "flashes and refreshes", trying to load the php + included html page.  Then, it will suddenly crash and the error will show up.  This also happens in another area, in a simple coppermine photo gallery.  When the php gallery is viewed, sometimes it will suddenly crash.  Sometimes it will not.  When it does crash and the Page cannot be displyaed shows, I try to refresh it and still cannot view the crashed page.  So, it randomly crashes. The php usually crashes when it loads "big information-like a big html page" (not necessarily php code). Also, PHP crashes on the big page no matter what machine I use to view it.  It will crash on the server machine itself when the php page is loaded.  I do not think it is my computer server problem, tho.  This is my server:

Sony vaio
Pentium III 900mhz
512Ram
40GB hardrive NTFS

Could you help me with this problem?

Thanks,
Felix Chan


Reproduce code:
---------------
An very simple php file with the include function for "file.html"---file.htm has many words and is relatively big.  

Also, PHP crashes during coppermine gallery viewing.

Expected result:
----------------
PHP should load, and not display an error.

Actual result:
--------------
PHP "Crashes"

The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. 

Cannot find server or DNS Error
Internet Explorer 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-25 00:40 UTC] smartychan at hotmail dot com
********************************
This is the edited information.
Reproduce code:
---------------
The URL to my php page that randomly crashes is:

http://chantown.com/fun/index.php?sm=facts

The included page within the php is :

http://chantown.com/fun/uselessfacts.htm

--
I also have a test page.  This test php page has one include function
only.  It includes games.htm.
http://chantown.com/fun/abc.php
http://chantown.com/fun/games.htm

--
this is my php info page. http://chantown.com/phpinfo.php

this server should be running between 12 pm to 11 pm Central Time. 
Thanks!

Expected result:
----------------
The php pages are supposed to load correctly and include the htm files
correctly.  

Actual result:
--------------
PHP page crashes, and Page Cannot be Displayed shows.  However, if I
click refresh many times, the page will "eventually load".
 [2004-12-27 22:02 UTC] smartychan at hotmail dot com
I just found out something.  

When I viewed the page in Mozilla Firefox, NOTHING Crashed.  It does crash when viewed on Internet Explorer (even the latest version).
 [2004-12-30 06:49 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2005-01-09 17:35 UTC] smartychan at hotmail dot com
I don't think I can provide anymore information.  
However, I can give some recent summary of information.


2 Days ago, I reformatted my computer.  Now, it is C and D drive both NTFS file system. I only installed 2 things on it so far.  Apache 2, php 4.3.  I installed Apache 2 using the installer, and I configured the Document Root  and Directory Index only.  Then, I installed php using the installer.  

I configured Apache 2 and php by adding these to the appropriate apache places:

ScriptAlias /php/ "c:/php/" 
Action application/x-httpd-php /php/php.exe 
AddType application/x-httpd-php .php 

Then, I made 2 files only in my directory: (this file is called abc.php)

<html>
<head>
</head>
<body>
<?php
	  include 'uselessfacts.htm'; 
    	?>

</body>
</html>

the second file, uselessfacts.htm, is 154kb big and contains 800 lines of text or so.  

The result was that the website crashed when viewed in IE 6.  When viewed in Firefox, the page loaded parts, and when refreshed, loaded the entire webpage.  IT did not totally crash in firefox.

When crashes, this is what happens:

The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. 
...
Cannot find server or DNS Error
Internet Explorer 

I know it is not my DNS problem, because it crashes when type localhost/abc.php in my URL.

Apache also never crashes, except when used with PHP.  I only have those 2 things installed on a fresh computer right now.  My apache and php and program files are on C drive, and my website files are on the D drive.  However, I tried moving the files on the D drive to the C drive, and the error still remained.  Therefore, I think it is a configuration problem.  

I think this is really weird, and I tried searching the internet for a similar problem, but nothing came up.  Error 9845 is the closest I can get, but it does not match my error completely.
Thanks!
 [2005-01-09 20:20 UTC] smartychan at hotmail dot com
Also, this is very important i just realized:

If I do NOT log onto windows.  (just leave it at the log in screen), my server and php and stuff will start normally.  AND, the php will NOT CRASH.

If I log on, the error will crash php.
 [2005-01-10 00:44 UTC] smartychan at hotmail dot com
Thanks for the snapshot, but 
I  uninstall my original PHP, then install my snapshot manually.

I copied php4ts.dll to windows folder...
Used php.ini-recommended
Configured doc_root in php.ini
Made php.ini readable by everyone
Kept existing Apache configuration with php.

I run the abc.php page again, but the error still remains, and the same error page displays.

Is it maybe my incorrect configuration with apache and php that makes the problem?
 [2005-01-13 04:28 UTC] sniper@php.net
I can't reproduce this so it must be something wrong with your system. Try reinstall?

 [2005-01-14 00:39 UTC] smartychan at hotmail dot com
I already tried reformatting my computer and also reinstalling apache/php many times, but still the same problem.  Do you know if it is a php/apache configuration problem, or is it a network problem (DNS/Virtual Server/etc.)?
 [2005-01-14 04:18 UTC] sniper@php.net
No, it's Windows problem. SP2 maybe, who knows.

 [2005-01-14 19:50 UTC] smartychan at hotmail dot com
OK, thanks

Wait, I have one more question.  I dont' have SP2 yet, if I get it, do you think it would solve my problem?
 [2005-01-14 19:50 UTC] smartychan at hotmail dot com
OK, thanks

Wait, I have one more question.  I dont' have SP2 yet, if I get it, do you think it would solve my problem?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 15:01:33 2024 UTC