cvs: pear /XMMS xmms.c

From: Date: Mon, 13 Aug 2001 20:58:30 +0000
Subject: cvs: pear /XMMS xmms.c
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-496@lists.php.net to get a copy of this message
rasmus Mon Aug 13 16:58:30 2001 EDT Modified files: /pear/XMMS xmms.c Log: Use add_index_zval() here instead Index: pear/XMMS/xmms.c diff -u pear/XMMS/xmms.c:1.12 pear/XMMS/xmms.c:1.13 --- pear/XMMS/xmms.c:1.12 Mon Aug 13 15:38:30 2001 +++ pear/XMMS/xmms.c Mon Aug 13 16:58:30 2001 @@ -273,7 +273,7 @@ add_assoc_string(tmp_arr, "title", title?title:"", 1); add_assoc_string(tmp_arr, "file", file?file:"", 1); add_assoc_double(tmp_arr, "time", xmms_remote_get_playlist_time(XG(session),i)/1000.0); - zend_hash_index_update(Z_ARRVAL_P(return_value), i, &tmp_arr, sizeof(tmp_arr), NULL); + add_index_zval(return_value, i, tmp_arr); } } else { if(single) { @@ -299,7 +299,7 @@ add_assoc_string(tmp_arr, "title", title?title:"", 1); add_assoc_string(tmp_arr, "file", file?file:"", 1); add_assoc_double(tmp_arr, "time", xmms_remote_get_playlist_time(XG(session),Z_LVAL_PP(tmp))/1000.0); - zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_PP(tmp), &tmp_arr, sizeof(tmp_arr), NULL); + add_index_zval(return_value, Z_LVAL_PP(tmp), tmp_arr); zend_hash_move_forward(Z_ARRVAL_P(var)); } }

« previous php.pear.cvs (#496) next »