version 1.1, 2012/02/21 23:48:02
|
version 1.1.1.2, 2012/05/29 12:34:43
|
Line 75 PHP_FUNCTION(sha1_file)
|
Line 75 PHP_FUNCTION(sha1_file)
|
int n; |
int n; |
php_stream *stream; |
php_stream *stream; |
|
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &arg, &arg_len, &raw_output) == FAILURE) { | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|b", &arg, &arg_len, &raw_output) == FAILURE) { |
return; |
return; |
} |
} |
|
|
stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS | ENFORCE_SAFE_MODE, NULL); | stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS, NULL); |
if (!stream) { |
if (!stream) { |
RETURN_FALSE; |
RETURN_FALSE; |
} |
} |