@@ -153,7 +153,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
153
153
}
154
154
goto next_line ;
155
155
}
156
-
156
+
157
157
{
158
158
phpdbg_input_t * input = phpdbg_read_input (cmd TSRMLS_CC );
159
159
switch (phpdbg_do_cmd (phpdbg_prompt_commands , input TSRMLS_CC )) {
@@ -164,7 +164,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
164
164
}
165
165
phpdbg_destroy_input (& input TSRMLS_CC );
166
166
}
167
-
167
+
168
168
}
169
169
next_line :
170
170
line ++ ;
@@ -920,13 +920,13 @@ static PHPDBG_COMMAND(list) /* {{{ */
920
920
static inline int phpdbg_call_register (phpdbg_input_t * input TSRMLS_DC ) /* {{{ */
921
921
{
922
922
phpdbg_input_t * function = input -> argv [0 ];
923
-
923
+
924
924
if (zend_hash_exists (
925
925
& PHPDBG_G (registered ), function -> string , function -> length + 1 )) {
926
-
926
+
927
927
zval fname , * fretval ;
928
928
zend_fcall_info fci ;
929
-
929
+
930
930
ZVAL_STRINGL (& fname , function -> string , function -> length , 1 );
931
931
932
932
fci .size = sizeof (fci );
@@ -936,24 +936,24 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ *
936
936
fci .object_ptr = NULL ;
937
937
fci .retval_ptr_ptr = & fretval ;
938
938
fci .no_separation = 1 ;
939
-
939
+
940
940
if (input -> argc > 1 ) {
941
941
int arg ;
942
942
zval * * * params ;
943
943
zval * zparam ;
944
-
944
+
945
945
fci .param_count = (input -> argc > 1 ) ? (input -> argc - 1 ) : 0 ;
946
946
fci .params = (zval * * * ) emalloc (fci .param_count * sizeof (zval * * ));
947
-
947
+
948
948
params = fci .params ;
949
-
949
+
950
950
for (arg = 1 ; arg <= (input -> argc - 1 ); arg ++ ) {
951
951
MAKE_STD_ZVAL (zparam );
952
952
ZVAL_STRINGL (
953
953
zparam ,
954
954
input -> argv [arg ]-> string ,
955
955
input -> argv [arg ]-> length , 1 );
956
-
956
+
957
957
* params ++ = & zparam ;
958
958
}
959
959
} else {
@@ -965,21 +965,21 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ *
965
965
966
966
if (input -> argc > 1 ) {
967
967
int param ;
968
-
968
+
969
969
for (param = 0 ; param < fci .param_count ; param ++ ) {
970
970
zval_ptr_dtor (fci .params [param ]);
971
971
}
972
972
efree (fci .params );
973
973
}
974
-
974
+
975
975
if (fretval ) {
976
976
zend_print_zval_r (
977
977
fretval , 0 TSRMLS_CC );
978
978
phpdbg_writeln (EMPTY );
979
979
}
980
-
980
+
981
981
zval_dtor (& fname );
982
-
982
+
983
983
return SUCCESS ;
984
984
}
985
985
@@ -990,7 +990,7 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
990
990
{
991
991
int ret = SUCCESS ;
992
992
993
- phpdbg_input_t * input = phpdbg_read_input (NULL TSRMLS_CC );
993
+ phpdbg_input_t * input = phpdbg_read_input (NULL TSRMLS_CC );
994
994
995
995
if (input && input -> length > 0L ) {
996
996
do {
0 commit comments