/* if the original value is 0 (disabled), then allow setting/unsetting at will
otherwise, only allow 1 (enabled), and error on disabling */
-ZEND_INI_MH(phar_ini_modify_handler)
+ZEND_INI_MH(phar_ini_modify_handler) /* {{{ */
{
zend_bool *p, test;
#ifndef ZTS
}
return SUCCESS;
}
+/* }}}*/
PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("phar.readonly", "1", PHP_INI_ALL, phar_ini_modify_handler, readonly, zend_phar_globals, phar_globals)
}
return SUCCESS;
}
+/* }}}*/
/**
* Return an already opened filename.
function_entry phar_functions[] = {
{NULL, NULL, NULL} /* Must be the last line in phar_functions[] */
};
+/* }}}*/
/* {{{ php_phar_init_globals
*/
phar_archive_object *phar_obj = (phar_archive_object*)zend_object_store_get_object(getThis() TSRMLS_CC); \
if (!phar_obj->arc.archive) { \
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, \
- "Cannot call method on an uninitialzed Phar object"); \
+ "Cannot call method on an uninitialized Phar object"); \
return; \
}
phar_entry_object *entry_obj = (phar_entry_object*)zend_object_store_get_object(getThis() TSRMLS_CC); \
if (!entry_obj->ent.entry) { \
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, \
- "Cannot call method on an uninitialzed PharFileInfo object"); \
+ "Cannot call method on an uninitialized PharFileInfo object"); \
return; \
}