php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36335 Apache.exe error Memory could not be read
Submitted: 2006-02-09 00:38 UTC Modified: 2007-02-12 14:46 UTC
Votes:7
Avg. Score:4.4 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:2 (40.0%)
From: kris_rock82 at yahoo dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.1.2 OS: Windows 2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-02-09 00:38 UTC] kris_rock82 at yahoo dot com
Description:
------------
I have apache 2.0.55, php 5.1.2 and mapserver 4.6.2 installed on my machine. I am reading a .sid file from a remote machine on the same domain, generating an image from the sid file and displaying it in the browser. I get am apache.exe "memory could not be read" error every alternate time, its not everytime but every alternate time. I dont know exactly why it is giving me the error alternatively.


Thanks for your time ......


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-09 00:47 UTC] tony2001@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 possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2006-02-09 17:36 UTC] kris_rock82 at yahoo dot com
I am accepting some variables from a form, then i split them and assign them to each of the mapserver values. Some times the form variables might be empty too. This is a snippet of the code i am including, i didnt include the split function

<?php

$config = $_POST['config'];
$raster = $_POST['raster1'];
for ($i=0; $i<30;$i++)
{
  $layercontent[] = $_POST['layer'.($i+1)];
  $labelcontent[] = $_POST['label'.($i+1)];
  if($layercontent[$i] != "")
  {
     $layercount++;
  }
  if($labelcontent[$i] != "")
  {
     $labelcount++;
  }
}
 //split the values and run it till layer count and label count ...

?>


Thanks for your time .....
 [2006-02-09 18:07 UTC] tony2001@php.net
I don't think we have this form either, so please provide a short but _complete_ reproduce code.
 [2006-02-17 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".
 [2007-02-12 14:25 UTC] dave dot boschma at han dot nl
Installed Apache 2.2.4 (Win32) and PHP 5.2.1 today.
Install script complained and terminated, but php was installed. After starting the webserver service the status was "running". When requesting localhost (a page with nothing more than phpinfo()) the service crashes with exactly the same error.
 [2007-02-12 14:33 UTC] dave dot boschma at han dot nl
After examining the error.log:

-- snip

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)

-- snip

I manually edited the php.ini and deleted all lines at the very bottom of the ini file. About half-way extensions are loaded, and at the bottom there were many more extensions (includding the extensions allready loaded). After deleting these lines and restarting Apache: problem solved...

Should the installer be fixed?
 [2007-02-12 14:35 UTC] dave dot boschma at han dot nl
Sorry... wrong sniplet...

-- snip

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_oci8.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_oci.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_oci8.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pspell.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_sybase_ct.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ibm_db2.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ifx.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_imagick.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ingres.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_netools.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_oracle.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_svn.dll' - Kan opgegeven module niet vinden.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_yaz.dll' - Kan opgegeven procedure niet vinden.\r\n in Unknown on line 0

-- snip

"Kan opgegeven procedure niet vinden" is Dutch for "Can't find specified procedure"
 [2007-02-12 14:46 UTC] tony2001@php.net
All these extensions required third-party libraries, so no wonder PHP cannot load them.
See relevant sections of the documention.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 12:01:32 2024 UTC