|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-03-04 06:25 UTC] laruence@php.net
-Assigned To:
+Assigned To: nikic
[2015-03-07 19:38 UTC] bwoebi@php.net
[2015-03-09 11:43 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2015-03-09 11:43 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
Description: ------------ When yielding using + or - operator, the value is returned before the operation is performed. In previous versions of PHP (>= 5.5 && < 7.0-dev) the operation was first performed on the value before it was return. Test script: --------------- function a () { echo yield + 3; } $a = a(); $a->send(42); Expected result: ---------------- 45 Actual result: -------------- 42