Browse Source

proto fixes

experimental/ZendEngine2
Hartmut Holzgraefe 24 years ago
parent
commit
2c93a6ac2d
  1. 8
      ext/java/java.c
  2. 4
      ext/muscat/muscat.c
  3. 8
      ext/rpc/java/java.c
  4. 5
      sapi/apache2filter/php_functions.c

8
ext/java/java.c

@ -480,6 +480,8 @@ void java_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_refe
/***************************************************************************/
/* {{{ proto object java_last_exception_get(void)
Get last Java exception */
PHP_FUNCTION(java_last_exception_get)
{
jlong result = 0;
@ -495,8 +497,12 @@ PHP_FUNCTION(java_last_exception_get)
(*JG(jenv))->CallVoidMethod(JG(jenv), JG(php_reflect), lastEx, result);
}
/* }}} */
/***************************************************************************/
/* {{{ proto void java_last_exception_clear(void)
Clear last java extension */
PHP_FUNCTION(java_last_exception_clear)
{
jlong result = 0;
@ -512,6 +518,8 @@ PHP_FUNCTION(java_last_exception_clear)
(*JG(jenv))->CallVoidMethod(JG(jenv), JG(php_reflect), clearEx);
}
/* }}} */
/***************************************************************************/
static pval _java_getset_property

4
ext/muscat/muscat.c

@ -158,7 +158,7 @@ void _discard(_muscat_handle * handle) {
/* }}} */
/* {{{ proto resource setup_muscat(int size [, string muscat_dir])
/* {{{ proto resource muscat_setup(int size [, string muscat_dir])
Creates a new muscat session and returns the handle. Size is the ammount of memory in bytes to allocate for muscat muscat_dir is the muscat installation dir e.g. "/usr/local/empower", it defaults to the compile time muscat directory */
PHP_FUNCTION(muscat_setup)
{
@ -200,7 +200,7 @@ PHP_FUNCTION(muscat_setup)
}
/* }}} */
/* {{{ proto resource setup_muscat_net(string muscat_host, int port)
/* {{{ proto resource muscat_setup_net(string muscat_host, int port)
Creates a new muscat session and returns the handle. muscat_host is the hostname to connect to port is the port number to connect to - actually takes exactly the same args as fsockopen */
PHP_FUNCTION(muscat_setup_net)
{

8
ext/rpc/java/java.c

@ -480,6 +480,8 @@ void java_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_refe
/***************************************************************************/
/* {{{ proto object java_last_exception_get(void)
Get last Java exception */
PHP_FUNCTION(java_last_exception_get)
{
jlong result = 0;
@ -495,8 +497,12 @@ PHP_FUNCTION(java_last_exception_get)
(*JG(jenv))->CallVoidMethod(JG(jenv), JG(php_reflect), lastEx, result);
}
/* }}} */
/***************************************************************************/
/* {{{ proto void java_last_exception_clear(void)
Clear last java extension */
PHP_FUNCTION(java_last_exception_clear)
{
jlong result = 0;
@ -512,6 +518,8 @@ PHP_FUNCTION(java_last_exception_clear)
(*JG(jenv))->CallVoidMethod(JG(jenv), JG(php_reflect), clearEx);
}
/* }}} */
/***************************************************************************/
static pval _java_getset_property

5
sapi/apache2filter/php_functions.c

@ -48,6 +48,8 @@ static request_rec *php_apache_lookup_uri(INTERNAL_FUNCTION_PARAMETERS)
return ap_sub_req_lookup_uri(Z_STRVAL_PP(p1), ctx->f->r, NULL);
}
/* {{{ proto bool apache_sub_req(string uri)
Perform an apache sub-request */
PHP_FUNCTION(apache_sub_req)
{
request_rec *rr;
@ -104,6 +106,8 @@ PHP_FUNCTION(apache_lookup_uri)
RETURN_FALSE;
}
/* {{{ proto array get_all_headers(void)
Fetch all HTTP request headers */
PHP_FUNCTION(get_all_headers)
{
php_struct *ctx;
@ -122,6 +126,7 @@ PHP_FUNCTION(get_all_headers)
add_assoc_string(return_value, key, val, 1);
APR_ARRAY_FOREACH_CLOSE()
}
/* }}} */
PHP_MINFO_FUNCTION(apache)
{

Loading…
Cancel
Save