php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55629
Patch bug55629.patch revision 2011-09-07 08:28 UTC by laruence@php.net
revision 2011-09-07 08:21 UTC by laruence@php.net

Patch bug55629.patch for Compile Warning Bug #55629

Patch version 2011-09-07 08:28 UTC

Return to Bug #55629 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2011-09-07 08:28 UTC | 2011-09-07 08:21 UTC

Developer: laruence@php.net

Line 33 (now 33), was 25 lines, now 17 lines

  +	const char *name = "";
   	zend_uint name_len = 0;
   	int dup;
   
 @@ -1854,14 +1854,14 @@
 @@ -1854,7 +1854,7 @@
      Get the resource type name for a given resource */
   ZEND_FUNCTION(get_resource_type)
   {
  -	char *resource_type;
  +	const char *resource_type;
   	zval *z_resource_type;
   
   	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &z_resource_type) == FAILURE) {
  		return;
  	}
  
 -	resource_type = zend_rsrc_list_get_rsrc_type(Z_LVAL_P(z_resource_type) TSRMLS_CC);
 +	resource_type = zend_rsrc_list_get_rsrc_type((Z_LVAL_P(z_resource_type)) TSRMLS_CC);
  	if (resource_type) {
  		RETURN_STRING(resource_type, 1);
  	} else {
  @@ -2057,7 +2057,7 @@
   	ptr = ptr->prev_execute_data;
   
   	while (ptr && (limit == 0 || frameno < limit)) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 22:01:29 2024 UTC