PHP hints memory Location Access Invalid workaround summary _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.