Created
June 26, 2014 15:45
-
-
Save Crash--/767e0558118b047e9334 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function streamAction(){ | |
$toto = $this->xml_stream_reader('./data/hg3.xml'); | |
var_dump($toto); | |
return false; | |
} | |
public function xml_stream_reader($url) | |
{ | |
echo 'ok'; | |
die(); | |
yield $this->displayXML($reader->readOuterXml()); | |
} | |
$this->streamAction();; | |
/* | |
Expected Result : 'ok' | |
Actual Result : object(Generator)#259 (0) { } | |
If I comment the yeld line, I got the expected result... WTF | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment