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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to