From: Zeev Suraski Date: Sat, 5 Feb 2000 01:26:15 +0000 (+0000) Subject: That was the broken downcasting that prevented the interactive C++ mode from working... X-Git-Tag: BEFORE_SAPIFICATION_FEB_10_2000~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef5d72cc3790cbdb46ffa21370098898f86768c6;p=php That was the broken downcasting that prevented the interactive C++ mode from working properly under UNIX --- diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l index 5b7c25749b..eb5a4bebdd 100644 --- a/Zend/zend-scanner.l +++ b/Zend/zend-scanner.l @@ -288,7 +288,7 @@ ZEND_API int open_file_for_scanning(zend_file_handle *file_handle CLS_DC) case ZEND_HANDLE_FP: file_handle->opened_path = NULL; if (file_handle->handle.fp==stdin) { - file_handle->handle.is = (ifstream *) &cin; + file_handle->handle.is = &cin; } else { if (!file_handle->handle.fp) { return FAILURE;