Comments starting with # is deprecated in Unknown on line 1

Source: Internet
Author: User
Tags deprecated ming
Errorexception [8192]: Comments starting with ' # ' is deprecated in Unknown on line 1

8192 e_deprecated (integer) runtime notification. When enabled, warns you about code that might not work correctly in a future release. Since PHP 5.3.0

Error code from: http://www.jb51.net/article/47793.htm

Should be a new version of PHP appeared a MySQL recommended with the Mysqlli and PDO hint problem, the error is turned off, and then open the good, this piece of PHP may still have some problems:

Error_reporting (e_all ^ e_notice ^ e_deprecated);//Solution Deprecated:mysql_connect (): The MySQL extension is DEPRECATED and WI ll be removed in the future:

Ini_set (' Display_startup_errors ', 0);

Ini_set (' Display_errors ', 0);

I setup an Ubuntu system with Nginx and PHP, but I noticed a strange error.

Every time I run something PHP related in the console I get this strange error:

PHP deprecated:comments starting with ' # ' is Deprecated In/etc/php5/cli/conf.d/ming.ini on line 1 inch Unknown on line 0

I googled for some minutes and found so is the happening and how to fix it. The solution is open the file:

Vi/etc/php5/cli/conf.d/ming.ini

and replace the "#" in the first line with "," and that would fix the "warning".

Using the newly-loaded PHP, but every time I execute a PHP script at the command line, the following warning message appears:

PHP deprecated:comments starting with ' # ' is Deprecated In/etc/php5/cli/conf.d/mcrypt.ini on line 1 inch Unknown on line 0

Check the Internet, the original is a new version of PHP is not in favor of using the ' # ' as a comment symbol, need to use a semicolon '; '. Open this file, replace the # in it with the number, solve the problem!

From: http://blog.163.com/mity_rui@126/blog/static/109813618201522525339369/

http://www.r00t.gr/ how-to-fix-php-deprecated-comments-starting-with-are-deprecated-in-etcphp5cliconf-dming-ini-on-line-1-in-unknown-on-line- 0/

  • 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.