@@ -122,7 +122,6 @@ static inline void php_phpdbg_globals_ctor(zend_phpdbg_globals *pg) /* {{{ */
122122 pg -> in_execution = 0 ;
123123 pg -> bp_count = 0 ;
124124 pg -> flags = PHPDBG_DEFAULT_FLAGS ;
125- pg -> oplog = NULL ;
126125 memset (pg -> io , 0 , sizeof (pg -> io ));
127126 pg -> frame .num = 0 ;
128127 pg -> sapi_name_ptr = NULL ;
@@ -199,11 +198,6 @@ static PHP_MSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
199198 PHPDBG_G (exec ) = NULL ;
200199 }
201200
202- if (PHPDBG_G (oplog )) {
203- fclose (PHPDBG_G (oplog ));
204- PHPDBG_G (oplog ) = NULL ;
205- }
206-
207201 if (PHPDBG_G (oplog_list )) {
208202 phpdbg_oplog_list * cur = PHPDBG_G (oplog_list );
209203 do {
@@ -1134,8 +1128,6 @@ int main(int argc, char **argv) /* {{{ */
11341128 char * init_file ;
11351129 size_t init_file_len ;
11361130 bool init_file_default ;
1137- char * oplog_file ;
1138- size_t oplog_file_len ;
11391131 uint64_t flags ;
11401132 char * php_optarg ;
11411133 int php_optind , opt , show_banner = 1 ;
@@ -1186,8 +1178,6 @@ int main(int argc, char **argv) /* {{{ */
11861178 init_file = NULL ;
11871179 init_file_len = 0 ;
11881180 init_file_default = 1 ;
1189- oplog_file = NULL ;
1190- oplog_file_len = 0 ;
11911181 flags = PHPDBG_DEFAULT_FLAGS ;
11921182 is_exit = 0 ;
11931183 php_optarg = NULL ;
@@ -1281,13 +1271,6 @@ int main(int argc, char **argv) /* {{{ */
12811271 }
12821272 } break ;
12831273
1284- case 'O' : { /* set oplog output */
1285- oplog_file_len = strlen (php_optarg );
1286- if (oplog_file_len ) {
1287- oplog_file = strdup (php_optarg );
1288- }
1289- } break ;
1290-
12911274 case 'v' : /* set quietness off */
12921275 flags &= ~PHPDBG_IS_QUIET ;
12931276 break ;
@@ -1442,9 +1425,6 @@ int main(int argc, char **argv) /* {{{ */
14421425 if (exec ) {
14431426 free (exec );
14441427 }
1445- if (oplog_file ) {
1446- free (oplog_file );
1447- }
14481428 if (init_file ) {
14491429 free (init_file );
14501430 }
@@ -1534,15 +1514,6 @@ int main(int argc, char **argv) /* {{{ */
15341514 php_stream_stdio_ops .write = phpdbg_stdiop_write ;
15351515#endif
15361516
1537- if (oplog_file ) { /* open oplog */
1538- PHPDBG_G (oplog ) = fopen (oplog_file , "w+" );
1539- if (!PHPDBG_G (oplog )) {
1540- phpdbg_error ("Failed to open oplog %s" , oplog_file );
1541- }
1542- free (oplog_file );
1543- oplog_file = NULL ;
1544- }
1545-
15461517 {
15471518 zval * zv = zend_hash_str_find (php_stream_get_url_stream_wrappers_hash (), ZEND_STRL ("php" ));
15481519 php_stream_wrapper * tmp_wrapper = Z_PTR_P (zv );
@@ -1757,7 +1728,6 @@ int main(int argc, char **argv) /* {{{ */
17571728 settings -> exec = zend_strndup (PHPDBG_G (exec ), PHPDBG_G (exec_len ));
17581729 settings -> exec_len = PHPDBG_G (exec_len );
17591730 }
1760- settings -> oplog = PHPDBG_G (oplog );
17611731 settings -> prompt [0 ] = PHPDBG_G (prompt )[0 ];
17621732 settings -> prompt [1 ] = PHPDBG_G (prompt )[1 ];
17631733 memcpy (ZEND_VOIDP (settings -> colors ), PHPDBG_G (colors ), sizeof (settings -> colors ));
0 commit comments