]> granicus.if.org Git - php/commitdiff
That was the broken downcasting that prevented the interactive C++ mode from working...
authorZeev Suraski <zeev@php.net>
Sat, 5 Feb 2000 01:26:15 +0000 (01:26 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 5 Feb 2000 01:26:15 +0000 (01:26 +0000)
Zend/zend-scanner.l

index 5b7c25749be8ac54dce5c4b10d9d226010a6185e..eb5a4bebdd4ffd015e1eea3b55b57a53c428e141 100644 (file)
@@ -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;