Commentsstartingwith # aredeprecatedinUnknownonline1

Source: Internet
Author: User
Commentsstartingwith # aredeprecatedinUnknownonline1 ErrorException [0, 8192]: Comments starting with '#' are deprecated in Unknown on line 1

8192 E_DEPRECATED (integer) runtime notification. When enabled, a warning will be given to code that may not work properly in future versions. Since PHP 5.3.0

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

It should be a problem that mysql recommends mysqlli and pdo prompts in the new version of PHP. just turn off the error and open it again. This may still be a problem in PHP:

Error_reporting (E_ALL ^ E_NOTICE ^ E_DEPRECATED); // Deprecated: mysql_connect (): The mysql extension is deprecated and will 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 '#' are deprecated in/etc/php5/cli/conf. d/ming. ini on line 1 in Unknown on line 0

I googled for some minutes and found why is that 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 will fix the "warning ".

The newly installed PHP is used, but the following warning message is displayed every time I execute the php script on the command line:

PHP Deprecated: Comments starting with '#' are deprecated in/etc/php5/cli/conf. d/mcrypt. ini on line 1 in Unknown on line 0

I checked it online. it turns out that the new version of PHP does not approve of '#' as the comment symbol, and the semicolon ';' is required ';'. Open this file and replace the # in it with the; number. The problem is solved!

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.