diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-08-12 16:43:53 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-08-12 16:43:53 +0000 |
commit | 05376077b31f6f884e3d6630124c21972a29687c (patch) | |
tree | 7131077bcea222c7c84bae809505d01f053ce36d /sapi/cli/php_cli.c | |
parent | bfb468c2755ea441c64d6a5c81987edab741344b (diff) | |
download | php-git-05376077b31f6f884e3d6630124c21972a29687c.tar.gz |
Fixed bug #45779 (regression with shebang lines processing)
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index d59702150e..c0dd51d96b 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -575,23 +575,6 @@ static int cli_seek_file_begin(zend_file_handle *file_handle, char *script_file, return FAILURE; } file_handle->filename = script_file; - /* #!php support */ - c = fgetc(file_handle->handle.fp); - if (c == '#') { - while (c != '\n' && c != '\r') { - c = fgetc(file_handle->handle.fp); /* skip to end of line */ - } - /* handle situations where line is terminated by \r\n */ - if (c == '\r') { - if (fgetc(file_handle->handle.fp) != '\n') { - long pos = ftell(file_handle->handle.fp); - fseek(file_handle->handle.fp, pos - 1, SEEK_SET); - } - } - *lineno = 2; - } else { - rewind(file_handle->handle.fp); - } return SUCCESS; } /* }}} */ |