|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-12-04 02:08 UTC] sniper@php.net
[2003-12-04 06:54 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ When using static variables and the .= operand, the static variable doubles itself. Reproduce code: --------------- function test() { static $test = ''; $test .= 'lala|'; echo $test; } test(); test(); test(); Expected result: ---------------- lala|lala|lala| Actual result: -------------- lala|lala|lala|lala|lala|lala|