mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix stupid mistake that only affected interactive mode.
This commit is contained in:
parent
f7d6212b9c
commit
e88da9728f
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ int zend_stream_getc(zend_file_handle *file_handle TSRMLS_DC)
|
|||
{
|
||||
char buf;
|
||||
|
||||
if (zend_stream_read(file_handle, &buf, sizeof(buf) TSRMLS_CC)) {
|
||||
return buf;
|
||||
if (file_handle->handle.stream.reader(file_handle->handle.stream.handle, &buf, sizeof(buf) TSRMLS_CC)) {
|
||||
return (int)buf;
|
||||
}
|
||||
return EOF;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue