1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

Fixed pointer mess (use * instead of **)

This commit is contained in:
Dmitry Stogov
2014-05-16 16:56:36 +04:00
parent 5eb273cfec
commit 89dbe07449
+2 -2
View File
@@ -677,7 +677,7 @@ static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int
char *internal_file, *error;
int internal_file_len;
phar_entry_data *idata;
phar_archive_data **pphar;
phar_archive_data *pphar;
uint host_len;
if ((resource = phar_parse_url(wrapper, url, "rb", options TSRMLS_CC)) == NULL) {
@@ -702,7 +702,7 @@ static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int
phar_request_initialize(TSRMLS_C);
pphar = zend_hash_str_find_ptr(&(PHAR_GLOBALS->phar_fname_map), resource->host, host_len);
if (PHAR_G(readonly) && (!pphar || !(*pphar)->is_data)) {
if (PHAR_G(readonly) && (!pphar || !pphar->is_data)) {
php_url_free(resource);
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: write operations disabled by the php.ini setting phar.readonly");
return 0;