fix in libzend.

From: Date: Wed, 06 Oct 1999 15:09:53 +0000
Subject: fix in libzend.
Groups: php.version4 
Request: Send a blank email to php-version4+get-5238@lists.php.net to get a copy of this message
i've just commited a fix to libzend that allows us to use resources as array indices again - that is really needed! sample: $parser = xml_parser_create($xmlrpc_defencoding); $_xh[$parser]=array(); $_xh[$parser]['st']=""; $_xh[$parser]['cm']=0; the current CVS would say: PHP Warning: Illegal offset type in xmlrpcs.inc on line 36 diff is: Index: zend_execute.c =================================================================== RCS file: /repository/libzend/zend_execute.c,v retrieving revision 1.90 diff -u -r1.90 zend_execute.c --- zend_execute.c 1999/10/03 20:06:21 1.90 +++ zend_execute.c 1999/10/06 15:00:49 @@ -535,10 +535,11 @@ } break; case IS_DOUBLE: + case IS_RESOURCE: case IS_LONG: { long index; - if(dim->type == IS_LONG) { + if (dim->type == IS_LONG || dim->type == IS_RESOURCE) { index = dim->value.lval; } else { index = (long)dim->value.dval; regards, tc

« previous php.version4 (#5238) next »