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/