helly           Sat Jan  7 16:46:30 2006 UTC

  Modified files:              
    /php-src/sapi/cli   php_cli.c 
  Log:
  - Show whether this is the shell or just the starnge mode
  
http://cvs.php.net/viewcvs.cgi/php-src/sapi/cli/php_cli.c?r1=1.143&r2=1.144&diff_format=u
Index: php-src/sapi/cli/php_cli.c
diff -u php-src/sapi/cli/php_cli.c:1.143 php-src/sapi/cli/php_cli.c:1.144
--- php-src/sapi/cli/php_cli.c:1.143    Sun Jan  1 13:09:58 2006
+++ php-src/sapi/cli/php_cli.c  Sat Jan  7 16:46:30 2006
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: php_cli.c,v 1.143 2006/01/01 13:09:58 sniper Exp $ */
+/* $Id: php_cli.c,v 1.144 2006/01/07 16:46:30 helly Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -783,7 +783,11 @@
 
                        case 'a':       /* interactive mode */
                                if (!interactive) {
+#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
+                                       printf("Interactive shell\n\n");
+#else
                                        printf("Interactive mode enabled\n\n");
+#endif
                                        fflush(stdout);
                                        interactive=1;
                                }

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

Reply via email to