fclose(STDOUT) #85

Closed
jfoll opened this Issue Apr 28, 2014 · 2 comments

Projects

None yet

2 participants

@jfoll
jfoll commented Apr 28, 2014

my script "redirect.php":

Results:
% phpdbg -e redirect.php
phpdbg> r
[Attempting compilation of some_path/redirect.php]
[Success]
[PHP Warning: fclose() expects parameter 1 to be resource, string given in some_path/redirect.php on line 2]

N.B. The script Works fine wtih PHP 5.1.6 and PHP 5.6.0-beta1

@jfoll
jfoll commented Apr 30, 2014

with php alone, the same error occurs when replacing "STDOUT" with "stdout": fclose(stdout)
the phpdbg compiler generates the error when translating the function arguments to lowercase.

@bwoebi
Collaborator
bwoebi commented May 1, 2014

the constants are just not defined. Will fix that.

@bwoebi bwoebi closed this May 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment