Bug #74302 [Opn->Asn]: yield from1251('dfd') ("from1251" is a valid function name) fails

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=74302&edit=1

 ID:                 74302
 Updated by:         [email protected]
 Reported by:        xtpd17 at gmail dot com
 Summary:            yield from1251('dfd') ("from1251" is a valid
                     function name) fails
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            *General Issues
 Operating System:   Windows 7
 PHP Version:        7.1.3
-Assigned To:        
+Assigned To:        pollita
 Block user comment: N
 Private report:     N

 New Comment:

Verified.  Fix should be simple enough.


Previous Comments:
------------------------------------------------------------------------
[2017-03-23 19:10:54] xtpd17 at gmail dot com

Description:
------------
Seems like parser thinks that is a "yield from generator" case, which is not.

Test script:
---------------
<?php

function from1251($a)
{
	return $a;
}

function foo()
{
	yield from1251('df');
}

// Parse error: syntax error, unexpected '(' in test.php on line 10



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=74302&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.