@@ -266,7 +266,6 @@ static zend_function_entry redis_functions[] = {
266266     PHP_ME (Redis , _unserialize , NULL , ZEND_ACC_PUBLIC )
267267
268268     PHP_ME (Redis , client , NULL , ZEND_ACC_PUBLIC )
269-      PHP_ME (Redis , rawcommand , NULL , ZEND_ACC_PUBLIC )
270269
271270     /* SCAN and friends */ 
272271     PHP_ME (Redis , scan , arginfo_scan , ZEND_ACC_PUBLIC )
@@ -290,7 +289,7 @@ static zend_function_entry redis_functions[] = {
290289     PHP_ME (Redis , slowlog , NULL , ZEND_ACC_PUBLIC )
291290
292291     /* Send a raw command and read raw results */ 
293-      PHP_ME (Redis , rawCommand , NULL , ZEND_ACC_PUBLIC )
292+      PHP_ME (Redis , rawcommand , NULL , ZEND_ACC_PUBLIC )
294293
295294     /* introspection */ 
296295     PHP_ME (Redis , getHost , NULL , ZEND_ACC_PUBLIC )
@@ -3336,12 +3335,20 @@ PHP_METHOD(Redis, script) {
33363335PHP_METHOD (Redis , dump ) {
33373336    REDIS_PROCESS_KW_CMD ("DUMP" , redis_key_cmd , redis_ping_response );
33383337}
3338+ /* }}} */ 
33393339
33403340/* {{{ proto Redis::restore(ttl, key, value) */ 
33413341PHP_METHOD (Redis , restore ) {
33423342    REDIS_PROCESS_KW_CMD ("RESTORE" , redis_key_long_val_cmd , 
33433343        redis_boolean_response );
33443344}
3345+ /* }}} */ 
3346+ 
3347+ /* {{{ proto Redis::debug(string key) */ 
3348+ PHP_METHOD (Redis , debug ) {
3349+     REDIS_PROCESS_KW_CMD ("DEBUG" , redis_key_cmd , redis_string_response );
3350+ }
3351+ /* }}} */ 
33453352
33463353/* {{{ proto Redis::migrate(host port key dest-db timeout [bool copy,  
33473354 *                          bool replace]) */ 
@@ -3483,7 +3490,13 @@ PHP_METHOD(Redis, clearLastError) {
34833490        RETURN_FALSE ;
34843491    }
34853492
3486-     RETVAL_LONG (redis_sock -> mode );
3493+     /* Clear error message if we have one */ 
3494+     if  (redis_sock -> err ) {
3495+         efree (redis_sock -> err );
3496+         redis_sock -> err  =  NULL ;
3497+     }
3498+ 
3499+     RETURN_TRUE ;
34873500}
34883501
34893502/* 
0 commit comments