Commit:    f8e7685975da5357bbe3e297377d7a8a0340acda
Author:    krakjoe <joe.watk...@live.co.uk>         Tue, 26 Nov 2013 16:02:39 
+0000
Parents:   969e659c4abb128017919f327aa127db36f49796
Branches:  PHP-5.6

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=f8e7685975da5357bbe3e297377d7a8a0340acda

Log:
fix #28

Bugs:
https://bugs.php.net/28

Changed paths:
  M  phpdbg_help.c
  M  phpdbg_set.c
  M  phpdbg_set.h


Diff:
diff --git a/phpdbg_help.c b/phpdbg_help.c
index b6bc28c..eaf5f64 100644
--- a/phpdbg_help.c
+++ b/phpdbg_help.c
@@ -458,6 +458,7 @@ PHPDBG_HELP(set) /* {{{ */
                        ++set_command;
                }
        }
+#ifndef _WIN32
        phpdbg_notice("Colors");
        {
                const phpdbg_color_t *color = phpdbg_get_colors(TSRMLS_C);
@@ -479,6 +480,7 @@ PHPDBG_HELP(set) /* {{{ */
                }
        }
        phpdbg_writeln("The <element> for set color can be \"prompt\", 
\"notice\", or \"error\"");
+#endif
        phpdbg_help_footer();
        return SUCCESS;
 } /* }}} */
diff --git a/phpdbg_set.c b/phpdbg_set.c
index f7a32bb..aa24822 100644
--- a/phpdbg_set.c
+++ b/phpdbg_set.c
@@ -63,6 +63,7 @@ PHPDBG_SET(break) /* {{{ */
        return SUCCESS;
 } /* }}} */
 
+#ifndef _WIN32
 PHPDBG_SET(color) /* {{{ */
 {
        if ((param->type == STR_PARAM) && (input->argc == 3)) {
@@ -104,6 +105,7 @@ usage:
        }
        return SUCCESS;
 } /* }}} */
+#endif
 
 PHPDBG_SET(oplog) /* {{{ */
 {
diff --git a/phpdbg_set.h b/phpdbg_set.h
index 2fcc0d0..b18da48 100644
--- a/phpdbg_set.h
+++ b/phpdbg_set.h
@@ -25,13 +25,17 @@
 #define PHPDBG_SET(name) PHPDBG_COMMAND(set_##name)
 
 PHPDBG_SET(prompt);
+#ifndef _WIN32
 PHPDBG_SET(color);
+#endif
 PHPDBG_SET(oplog);
 PHPDBG_SET(break);
 
 static const phpdbg_command_t phpdbg_set_commands[] = {
        PHPDBG_COMMAND_D_EX(prompt,       "usage: set prompt <string>",         
 'p', set_prompt,       NULL, 0),
+#ifndef _WIN32
        PHPDBG_COMMAND_D_EX(color,        "usage: set color  <element> 
<color>", 'c', set_color,        NULL, 1),
+#endif
        PHPDBG_COMMAND_D_EX(oplog,        "usage: set oplog  <output>",         
 'O', set_oplog,        NULL, 0),
        PHPDBG_COMMAND_D_EX(break,        "usage: set break  <on|off>",         
 'b', set_break,        NULL, 0),
        PHPDBG_END_COMMAND


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

Reply via email to