[php-src] Issue #25371: SCCP optimize special string concats to make strings interned

From: Date: Tue, 10 Nov 2026 15:12:16 +0000
Subject: [php-src] Issue #25371: SCCP optimize special string concats to make strings interned
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-254113@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/25371 Author: rr-it ### Description Currently these cases create an interned string: ```php $strInternedA = "my valid string"; $strInternedB = "my valid" . " string"; ``` Whereas these cases do not become an interned string: ``` $strNonInternedC = "my valid"; $strNonInternedC .= " string"; $strInternedD1 = "my valid"; $strNonInternedD2 = $strInternedD1 . " string"; ``` These cases could get further optimizations implemented.

« previous php.bugs (#254113) next »