Re: cvs: php4 /ext/curl multi.c ZendEngine2 zend_list.c zend_list.h

From: Date: Wed, 02 Apr 2003 17:08:00 +0000
Subject: Re: cvs: php4 /ext/curl multi.c ZendEngine2 zend_list.c zend_list.h
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19976@lists.php.net to get a copy of this message
On Wed, 2 Apr 2003, Sterling Hughes wrote: > sterling Wed Apr 2 11:58:52 2003 EDT > > Modified files: > /ZendEngine2 zend_list.c zend_list.h > /php4/ext/curl multi.c > Log: > add the ability for curl_multi_info to introspect the handles. > > # Zend commit doesn't break anything, so I'm committing it. If anyone > # has problems, just speak up. :) > +ZEND_API int zend_list_id_by_pointer(void *p, int type TSRMLS_DC) > +{ > + zend_rsrc_list_entry *le; > + HashPosition pos; > + > + for (zend_hash_internal_pointer_reset_ex(&EG(regular_list), &pos); > + zend_hash_get_current_data_ex(&EG(regular_list), (void *) &le, &pos) == > SUCCESS; > + zend_hash_move_forward_ex(&EG(regular_list), &pos)) { > + if (le->type == type && le->ptr == p) { > + return le->id; > + } > + } > > + return -1; > +} > + Check the whitespace... Derick

« previous php.cvs (#19976) next »