php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46584 Invalid access to memory location."
Submitted: 2008-11-16 17:03 UTC Modified: 2009-02-25 01:00 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: jpetrula at hotmail dot com Assigned:
Status: No Feedback Package: IIS related
PHP Version: 5.2.6 OS: xp pro SP3
Private report: No CVE-ID: None
 [2008-11-16 17:03 UTC] jpetrula at hotmail dot com
Description:
------------
Windows XP Pro SP3
php-5.2.6-win32-installer.msi

Installed using "IIS ISAPI module"
Installed to C:\PHP
Used defaults for features to install.
Verified PATH has C:\PHP\;...

I created "C:\Inetpub\wwwroot\HelloWorld.php" which contains
<html>
<body>
<? php print "Hello World"; ?>
</body>
</html>

Typed in browser
http://localhost/HelloWorld.php

Browser displays following error:
"Invalid access to memory location."

Typed in browser
http://localhost/default.html

This works fine so I know IIS is working.

Why isn't HelloWorld.php working?

Thank you for the feedback.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-16 17:34 UTC] pajoye@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I would also recommend to use the FCGI interface if you still use the ISAPI.
 [2008-11-16 19:13 UTC] jpetrula at hotmail dot com
I went to
http://windows.php.net/snapshots/

As the sidebar recommended, I installed
php-5.3-win32-VC9-x86-latest.msi

As the sidebar recommended, I also installed the
Microsoft Visual C++ 2008 Redistributable Package (x86)
http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en 

Installed using "IIS ISAPI module"
Installed to C:\PHP
Used defaults for features to install.
Verified PATH has C:\PHP\;...

I created "C:\Inetpub\wwwroot\HelloWorld.php" which contains
<html>
<body>
This is the body.
<? php echo "Hello World"; ?>
</body>
</html>

Typed in browser
http://localhost/HelloWorld.php

The browser displayed
"This is the body."
However, it did not display the "Hello World".

This time there was no "Invalid access to memory location." which is an improvement.
IIS must be reading HelloWorld.php since "This is the body." was displayed.

The IIS management component shows that ".php" is

Executable: C:\PHP\PHP5IS~1.DLL
Extention: .php
Script engine: checked
Check that file exists: checked

Any idea why the php script is not working?

I would prefer using "IIS ISAPI module" if possible for security reasons.

Thanks
 [2008-11-18 05:22 UTC] jpetrula at hotmail dot com
Oops

<? php echo "Hello World"; ?>
Should be
<?php echo "Hello World"; ?>

Things are working now with your suggested installation.
php-5.3-win32-VC9-x86-latest.msi

It is too bad that
http://www.php.net/downloads.php
has links for downloading
php-5.2.6-win32-installer.msi
which gives
"Invalid access to memory location."
instead of
php-5.3-win32-VC9-x86-latest.msi
which works.

Thanks again.
 [2009-02-17 18:55 UTC] pajoye@php.net
Please try using 5.2.8 or 5.2.9RC1, or 5.2.9 snapshot.
 [2009-02-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC