This article mainly introduces how to solve the problem of invalid access at the memory location in php. The reason obtained after analysis is sqlite extension. For more information, see
This article mainly introduces how to solve the problem of invalid access at the memory location in php. The reason obtained after analysis is sqlite extension. For more information, see
The configuration environment is as follows:
Win2003SP2 + IIS6 + php5.26 + mysql5.0.51a + zend3.3a + PhpMyAdmin2.11.7.1 PHP Execution method: isapi. Mysql is manually installed.
Solution and steps for "invalid memory location access" errors: (some invalid debugging steps are skipped ..)
1. Enable IIS errors. No error cause is found!
2. Check for IIS extensions. The ISAPI, php. ini, and Mysql configurations, and the corresponding installation directory ACLs permissions are all correct.
3. Reclaim IIS process. The error still shows "invalid memory location access "....
4. Open display_startup_errors = On in php. ini. The problem is finally found... (Note: If you open display_startup_errors of php. ini, a prompt will be displayed If php has an error and a record will appear in the event viewer. If it is set to display_startup_errors = Off, no prompt will be displayed)
V. Error Analysis
The Code is as follows:
Warning
Cannot load module 'sqlite 'because required module 'pdo' is no loaded
The above error message was finally found. Probably because SQLite desktop database support is enabled in the php. ini configuration, but the related pdo mode is not enabled, the pdo module loading fails .....
6. The solution is also very simple. Because the php_sqlite.dll file is not loaded when it is loaded, the system prompts that the access to the memory location is invalid when running the phpinfo () function. Find the php. ini configuration file and remove the semicolon before "; extension = php_pdo.dll". extension = php_sqlite.dll
Then, clear the IIS application pool process and solve the problem completely.