[php-src] Issue #12828: PHP adding in \n \t to variable

From: Date: Wed, 29 Nov 2023 17:56:25 +0000
Subject: [php-src] Issue #12828: PHP adding in \n \t to variable
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245935@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12828 Author: sodcore ### Description The following code: ```php $boardTemp = "25"; $timeAwake = "2"; $batteryVolts = "5.24"; $loadBatteryVolts = "5.25"; $solarVolts = ".89"; $loadSolarVolts = ".89"; $minSolarVolts = "0"; $charging = "18"; $xbeeSignal = "1"; $numberOfCables = "7"; $deviceId = "7"; $sql = "insert into device values (NULL, '$boardTemp','$timeAwake' , '$batteryVolts','$loadBatteryVolts', '$solarVolts','$loadSolarVolts','$minSolarVolts', '$charging','$xbeeSignal','$numberOfCables','$deviceId',NULL);"; <?php ``` Resulted in this output: ``` BASICALLY IT IS ADDING IN THE \n and the \n\t\t\t\t\t for no reason. Some numbers may be off as I simplifed this code as much as possible for isolation of problem. OUTPUT: device insert into device values (NULL, '25.00','2.00' , '5.24','5.25',\n '0.89','0.89','0.00',\n\t\t\t\t\t'','18','1','7',NULL); But I expected this output instead: ```device insert into device values (NULL, '25.00','2.00' , '5.24','5.25', '0.89','0.89','0.00','18','1','7','7',NULL); ``` ### PHP Version php 8.2.13 ### Operating System Debian Buster 10

« previous php.bugs (#245935) next »