[php-src] Issue #8120: mysqli blank error

From: Date: Sat, 19 Feb 2022 05:44:05 +0000
Subject: [php-src] Issue #8120: mysqli blank error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239886@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8120 Author: zbestzeus ### Description The following code: ```php $string ="<?php error_reporting(E_ALL ^ E_STRICT); ini_set('display_errors', 1); require_once '".SITEPATH ."/model/settings.php'; require_once '".SITEPATH ."/model/table_class.php';require_once '".SITEPATH ."/components/site/page.php';"; $string .="\$pages = new PageClass;\$class_page = \$pages->load((int)".$this->variables['page_id'].");?>"; file_put_contents(SITEPATH."/uploads/test.php", $string); $result = exec( "php '".SITEPATH."/uploads/test.php' 2>&1"); <?php ``` Resulted in this output: ``` thrown in /var/www/vhosts/rhaindustry.com/httpdocs/model/settings.php on line 58 Original the line was $mysqli = new mysqli(SITE_DB_HOST, SITE_DB_USER, SITE_DB_PASS, SITE_DB_NAME); I changed it to mysqli_report( MYSQLI_REPORT_OFF ); based on suggestions I read, but I still received the same blank error, and now it is giving me the blank error with that line. ``` But I expected this output instead: ``` Nothing. The website is working without an errors, it's just when I ran my script to run through the site via exec after upgrading to 8.1 to find any errors, that I found this blank error. ``` I have never seen a blank error in my life. ### PHP Version PHP 8.1 ### Operating System Ubuntu 20.04

« previous php.bugs (#239886) next »