com php-src: Merge sapi/phpdbg into PHP-5.6: sapi/phpdbg/Makefile.frag sapi/phpdbg/phpdbg.1
| From: | Bob Weinand | Date: | Wed, 25 Jun 2014 11:56:45 +0000 |
| Subject: | com php-src: Merge sapi/phpdbg into PHP-5.6: sapi/phpdbg/Makefile.frag sapi/phpdbg/phpdbg.1 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79064@lists.php.net to get a copy of this message | ||
Commit: 09b2510df63c2538bc2933405c452ac94442e1be
Author: Bob Weinand <bobwei9@hotmail.com> Wed, 25 Jun 2014 13:56:45 +0200
Parents: 78c3ca105b0e4d7429f5381a667973810b7be86e 858b45d4ad86a9d1ec857e20cf8c8e33c15500c0
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=09b2510df63c2538bc2933405c452ac94442e1be
Log:
Merge sapi/phpdbg into PHP-5.6
Changed paths:
MA sapi/phpdbg/Makefile.frag
AA sapi/phpdbg/phpdbg.1
Diff:
diff --cc sapi/phpdbg/Makefile.frag
index d787b0f,0000000..b276aaa
mode 100644,000000...100644
--- a/sapi/phpdbg/Makefile.frag
+++ b/sapi/phpdbg/Makefile.frag
@@@ -1,39 -1,0 +1,42 @@@
+phpdbg: $(BUILD_BINARY)
+
+phpdbg-shared: $(BUILD_SHARED)
+
+$(BUILD_SHARED): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_PHPDBG_OBJS)
+ $(BUILD_PHPDBG_SHARED)
+
+$(BUILD_BINARY): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_PHPDBG_OBJS)
+ $(BUILD_PHPDBG)
+
+%.c: %.y
+%.c: %.l
+
+$(builddir)/phpdbg_lexer.lo: $(srcdir)/phpdbg_parser.h
+
+$(srcdir)/phpdbg_lexer.c: $(srcdir)/phpdbg_lexer.l
+ @(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date -cbdFo $(srcdir)/phpdbg_lexer.c
$(srcdir)/phpdbg_lexer.l)
+
+$(srcdir)/phpdbg_parser.h: $(srcdir)/phpdbg_parser.c
+$(srcdir)/phpdbg_parser.c: $(srcdir)/phpdbg_parser.y
+ @$(YACC) -p phpdbg_ -v -d $(srcdir)/phpdbg_parser.y -o $@
+
+install-phpdbg: $(BUILD_BINARY)
+ @echo "Installing phpdbg binary: $(INSTALL_ROOT)$(bindir)/"
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run
+ @$(INSTALL) -m 0755 $(BUILD_BINARY)
$(INSTALL_ROOT)$(bindir)/$(program_prefix)phpdbg$(program_suffix)$(EXEEXT)
++ @echo "Installing phpdbg man page: $(INSTALL_ROOT)$(mandir)/man1/"
++ @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
++ @$(INSTALL_DATA) sapi/phpdbg/phpdbg.1
$(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)phpdbg$(program_suffix).1
+
+clean-phpdbg:
+ @echo "Cleaning phpdbg object files ..."
+ find sapi/phpdbg/ -name *.lo -o -name *.o | xargs rm -f
+
+test-phpdbg:
+ @echo "Running phpdbg tests ..."
+ @$(top_builddir)/sapi/cli/php sapi/phpdbg/tests/run-tests.php --phpdbg sapi/phpdbg/phpdbg
+
+.PHONY: clean-phpdbg test-phpdbg
+
diff --cc sapi/phpdbg/phpdbg.1
index 0000000,0000000..5e4d144
new file mode 100644
--- /dev/null
+++ b/sapi/phpdbg/phpdbg.1
@@@ -1,0 -1,0 +1,59 @@@
++.TH PHPDBG 1
++.SH NAME
++phpdbg \- The interactive PHP debugger
++.SH SYNOPSIS
++.B phpdbg
++[OPTION]
++[\fB\-e\fIFILE\fR]
++.SH DESCRIPTION
++.B phpdbg
++a lightweight, powerful, easy to use debugging platform for PHP5.
++.SH OPTIONS
++The following switches are implemented (just like cli SAPI):
++.TP
++.BR \-n
++No \fBphp.ini\fR file will be used
++.TP
++.BR \-c \fIpath\fB|\fIfile\fR
++Look for \fBphp.ini\fR file in the directory \fIpath\fR or use the specified \fIfile\fR
++.TP
++.BR \-z \fIfile\fR
++Load Zend extension \fIfile\fR
++.TP
++.BR \-d \fIfoo\fB[=\fIbar\fB]\fR
++Define INI entry \fIfoo\fR with value \fIbar\fR
++.PP The following switches change the default behaviour of phpdbg:
++.TP
++.BR \-v
++Disables quietness
++.TP
++.BR \-s
++Enabled stepping
++.TP
++.BR -e \fIfile\fR
++Sets execution context
++.TP
++..BR \-b
++Disables use of colour on the console
++.TP
++.BR \-I
++Ignore .phpdbginit (default init file)
++.TP
++.BR \-i \fIpath\fB|\ffile\fR
++Override .phpgdbinit location (implies -I)
++.TP
++.BR \-O \fIfile\fR
++Set oplog output to \fIfile\fR
++.TP
++.BR \-q
++Do not print banner on startup
++.TP
++.BR \-r
++Jump straight to run
++.TP
++.BR \-E
++Enable step through eval()
++.SH NOTES
++Passing -rr will cause phpdbg to quit after execution, rather than returning to the console
++.SH AUTHOR
++Written by Felipe Pena, Joe Watkins and Bob Weinand, formatted by Ondřej Surý for Debian
project.