1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 05:02:27 +02:00
Commit Graph

244 Commits

Author SHA1 Message Date
Anatol Belski
52d2ead59d override stdin and stdout to be remote, stderr is untouched however
is this ok? some functions want to write a log there ...
2014-10-19 01:31:00 +02:00
Bob Weinand
6932bbfd52 Merge branch 'xml-protocol'
Conflicts:
	phpdbg.c
	phpdbg_list.c
2014-10-18 21:12:25 +02:00
Anatol Belski
449fd307e4 enable console options for remote on win 2014-10-12 20:05:26 +02:00
Anatol Belski
d5ce62c17c basic rework for remote on win 2014-10-12 19:53:05 +02:00
Bob Weinand
e19c789979 Maybe-fix for krakjoe/phpdbg#120, fixed remote on darwin 2014-10-11 23:36:12 +02:00
Bob Weinand
eeafa4e518 Merge branch 'master' into xml-protocol 2014-10-09 12:01:43 +02:00
Bob Weinand
ca7f2f5f43 Ports are unsigned short, use unsigned to display 2014-10-09 12:01:25 +02:00
Bob Weinand
9db6a93b69 Add <intros> tag around <intro /> tags 2014-10-09 00:25:25 +02:00
Bob Weinand
8bc2881260 Merge branch 'master' into xml-protocol
Conflicts:
	phpdbg.c
	phpdbg.h
	phpdbg_cmd.c
	phpdbg_cmd.h
	phpdbg_frame.c
	phpdbg_info.c
	phpdbg_list.c
	phpdbg_print.c
	phpdbg_prompt.c
	phpdbg_utils.c
	phpdbg_utils.h
	phpdbg_watch.c
2014-10-07 13:08:30 +02:00
Bob Weinand
fb76316819 Add request_id possibility for xml output 2014-10-06 11:26:08 +02:00
Bob Weinand
19cdad194b Add transfer of output back to webserver and merge master in
Conflicts:
	config.m4
	phpdbg.c
	phpdbg.h
	phpdbg_cmd.c
	phpdbg_prompt.c
2014-10-04 23:21:34 +02:00
Bob Weinand
8af0870d72 Made some functions async safe and provide interactive shell in signal handler
Fixes also (as a side-effect) a possible bug in list function when included files become unreachable after loading by caching the file contents
This is already pretty stable; a (restricted) ev and sh may follow.
2014-10-03 01:29:41 +02:00
Bob Weinand
b183494f37 Send a \x03 during execution to interrupt (POSIX only) 2014-09-28 02:57:12 +02:00
Bob Weinand
67787d7b6d Merge branch 'master' into xml-protocol
Conflicts:
	phpdbg_utils.c
2014-09-25 01:22:33 +02:00
Bob Weinand
2bd1a74690 Always add a newline before a warning or a notice 2014-09-25 00:55:17 +02:00
Bob Weinand
3b81337f80 Fix accidental short-circuiting when comparing fds (& warnings) 2014-09-23 18:29:36 +02:00
Bob Weinand
ca635e4884 A few general segfault fixes 2014-09-22 00:52:22 +02:00
Bob Weinand
bbeccd7474 First draft of an xml protocol 2014-09-21 04:17:19 +02:00
Bob Weinand
e0e990229d Use full duplex stdin/stdout socket 2014-09-15 09:58:14 +02:00
Bob Weinand
05c73757ed Fix bug #111 (compile error without ZEND_SIGNALS) 2014-09-14 12:24:56 +02:00
Bob Weinand
554b30389e Fix segfaults, reorder files and set filename to exec 2014-09-10 16:03:26 +02:00
Bob Weinand
c35bb34608 Add webhelper extension and support for loading extensions
New phpdbg commands:
dl [path] - loads module / Zend extension
wait - waits for incoming connection from a phpdbg_webhelper module

Webhelper module is a UNIX domain socket to which a SAPI with the phpdbg_webhelper module loaded will write to the socket information about its whole environment.
phpdbg can then run the request locally [TODO: write the request back to the sender]
2014-09-10 16:03:26 +02:00
Felipe Pena
82f0b934a9 - CS 2014-06-29 09:57:57 -03:00
Bob Weinand
79519f7e30 Fix possible segfault depending on memory location... 2014-06-04 02:15:34 +02:00
Bob Weinand
467b19a948 Fixed startup segfault in non-debug builds
Fixes issue #87
2014-06-03 21:03:42 +00:00
Bob Weinand
bcf85252e2 Added stdion/stdout/stderr constsnts and their php:// wrappers
Fixes issue #85
2014-05-01 11:38:08 +02:00
krakjoe
e9668d4ce8 buffer input to repeat commands 2014-04-21 21:43:19 +01:00
krakjoe
0873f2bfb4 remove -e option in favour of taking script from argv[] 2014-04-21 21:24:41 +01:00
krakjoe
fd74024a49 remove compile command 2014-04-19 21:22:09 +01:00
krakjoe
89868dd4d9 Merge branch 'master' of https://github.com/krakjoe/phpdbg 2014-04-19 21:09:10 +01:00
krakjoe
11c707d836 auto compile when execution context set 2014-04-19 21:08:54 +01:00
Bob Weinand
7ab1c07a51 Fixed bug: ev output was buffered instead of directly displayed 2014-04-16 11:40:29 +02:00
Bob Weinand
8c22352e88 Added $this and superglobals support for watchpoints 2014-04-14 15:47:36 +02:00
krakjoe
ce7097fb60 less strange! 2014-04-13 14:43:34 +01:00
krakjoe
42355fb9bf Merge branch 'master' of https://github.com/krakjoe/phpdbg into watchpoints_recursive
Conflicts:
	config.m4
	phpdbg.c
	phpdbg_prompt.c
2014-04-13 11:07:38 +01:00
krakjoe
8c23b038cd fix moar 2014-04-13 08:43:19 +01:00
krakjoe
4387723ef7 fix argc/argv 2014-04-13 08:34:16 +01:00
krakjoe
ef86b57f3b Merge branch 'master' of https://github.com/krakjoe/phpdbg into lexer
Conflicts:
	phpdbg_prompt.c
2014-04-13 08:06:42 +01:00
Bob Weinand
3db29ee439 Added support for command line arg passing
"phpdbg -- arg" in shell
"run arg" in phpdbg prompt
2014-04-13 00:27:46 +02:00
Bob Weinand
c86ba551ac Merge branch 'master' into watchpoints_recursive
Conflicts:
	phpdbg.c
	phpdbg_utils.c
	phpdbg_utils.h
2014-03-23 23:32:13 +01:00
Bob Weinand
f887960f9b removed some weird crash when freeing to early 2014-03-16 22:37:33 +01:00
Bob Weinand
98025a40b8 Cleanup 2014-03-16 20:04:08 +01:00
Bob Weinand
3fcdd6ab0f Added WINDOWS support for watchpoints
Actually it mainly works by just a bit macro substitution and function
redeclarations.
So it leaves the code working on UNIX mostly untouched.

I needed to substitute the allocating functions by a Virtual*() functions
wrapper to use VirtualProtect() on the memory.
2014-03-16 19:39:02 +01:00
krakjoe
623888adc0 use php streams to handle line endings better for #81 2014-02-27 19:10:59 +00:00
krakjoe
fde1e44d62 trim breaking commands 2014-02-21 16:18:46 +00:00
krakjoe
996182993d remove input_t
support single char aliases
...
2014-02-19 08:33:54 +00:00
krakjoe
791828d00c fix zpp issues #74 2014-02-18 08:47:15 +00:00
Bob Weinand
7b44890ac4 Merge pull request #73 from TerryE/new-help
New help updates
2014-02-16 17:09:15 +01:00
Bob Weinand
b0273e749c Fix issue 68 (made check win only) 2014-02-06 20:43:17 +01:00
Terry Ellison
ebdfef807a Update help content and refactor new routine in php_help.c
*  I've added more content to the help to expand desciption for new-to-phpdbg
   developers.

*  After a code review of the new routines that I've added to the help module,
   I've decided that the implementation was unnecessarily convolved and that
   Keep-It-Simple-Stupid would be more understandable, maintainable and have
   no material performance hit.
2014-02-05 00:04:21 +00:00