This article collects a summary of the workarounds for PHP "Invalid memory location access" When using PHP, and can refer to a friend who needs it.
New configuration of the PHP environment, or just made configuration changes, such as the newly loaded DLL extension, access to the page, may appear "Memory location access invalid." "Error. The main reason is that DLL extension loading failed.
We just need to find out which DLL file is loading the problem. The troubleshooting methods are:
will be in php.ini
| The code is as follows |
Copy Code |
|
Display_startup_errors = Off
Switch
Display_startup_errors = on. |
At this time to access the PHP page, the server will pop up the PHP Error prompt dialog box, you can clearly see which DLL file failed to load, sometimes there will be multiple DLL file load failure, you need to first semicolon (;) comment out php.ini in the prompt that DLL after the continued access so repeatedly troubleshooting.
As I open
| The code is as follows |
Copy Code |
| Display_startup_errors = On |
Appear
Warning cannot load module ' SQLite ' because required module ' PDO ' is no loaded
The workaround is also simple because loading php_sqlite.dll is not loaded into the Php_pdo.dll file, so the memory location access is not valid when the Phpinfo () function is run. Locate the php.ini configuration file, and then remove
| The code is as follows |
Copy Code |
| "; Extension=php_pdo.dll" in front of the semicolon, Extension=php_sqlite.dll |
With the semicolon (;) commented out, PHP will work correctly.
If the above method cannot be solved, refer to the following method
Open PHP directory to start debugging ... It took a little time to find the roots.
If you have this problem then you can try the following my solution:
Open PHP installation directory edit php.ini this file
Search for the following fields
| The code is as follows |
Copy Code |
|
Extension=php_exif.dll |
When found, add a semicolon to the front.
As follows:
| The code is as follows |
Copy Code |
|
; Extension=php_exif.dll |
Save restart IIS and then visit the PHP file to see if you can open the memory location access is not valid
http://www.bkjia.com/PHPjc/632179.html www.bkjia.com true http://www.bkjia.com/PHPjc/632179.html techarticle This article collects a summary of the workarounds for PHP "Invalid memory location access" When using PHP, and can refer to a friend who needs it. The newly configured PHP environment, or just ...