Peter Kokot
d679f02295
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:33:09 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Dmitry Stogov
b36dbdd1dd
Perform "early-binding" directly during compilation
2018-08-24 15:18:38 +03:00
Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Dmitry Stogov
ca035f26aa
Moved "zval.u2.cache_slot" into free room of "zend_op"
2018-02-05 19:41:47 +03:00
Gabriel Caruso
ce1d69a1f6
Use int instead of integer in type errors
...
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00
Dmitry Stogov
ba298725d1
Changed CATCH instruction format (extended_value moved into op2, op2 into result, result into extended_value)
2018-01-31 22:39:30 +03:00
Dmitry Stogov
7cc6f60134
Added "argv" and "argc" as known strings.
...
Fixed incorrect "argc" update and corresponding phpdbg test.
2017-12-01 01:35:47 +03:00
Remi Collet
d99cd28925
fix tests for 32-bit
2017-09-13 12:20:05 +02:00
Sara Golemon
2b86a89193
Update tests and add NEWS entry for phpdbg opcode dump change
2017-03-29 12:54:52 -07:00
Bob Weinand
5d7ce72747
Merge branch 'PHP-7.1'
2016-12-22 00:42:05 +01:00
Bob Weinand
728502fc29
Merge branch 'PHP-7.0' into PHP-7.1
2016-12-22 00:40:54 +01:00
Bob Weinand
3b2b080cbc
Fixed bug #73704 (phpdbg shows the wrong line in files with shebang)
2016-12-22 00:39:24 +01:00
Bob Weinand
c3ee875aec
Merge branch 'PHP-7.1'
2016-12-20 20:18:53 +01:00
Bob Weinand
8b06b7e266
Fixed bug #73794 (Crash (out of memory) when using run and # command separator)
2016-12-20 20:18:36 +01:00
Bob Weinand
b149001ffd
Merge branch 'PHP-7.1'
2016-12-06 18:30:50 +01:00
Bob Weinand
43f88f25bb
Merge branch 'PHP-7.0' into PHP-7.1
2016-12-06 18:30:37 +01:00
Bob Weinand
7e12b5da71
Fixed issue getting executable lines from custom wrappers
...
See also krakjoe/phpdbg#161
2016-12-06 18:29:48 +01:00
Bob Weinand
c406d1e9b5
Merge branch 'PHP-7.1'
2016-11-30 11:45:36 +01:00
Bob Weinand
e37412e19c
Merge branch 'PHP-7.0' into PHP-7.1
2016-11-30 11:45:18 +01:00
Bob Weinand
344ef050aa
Fix run-tests.php to always include TEST_PHPDBG_EXECUTABLE if phpdbg available
2016-11-30 11:44:10 +01:00
Bob Weinand
7631c8766e
Merge branch 'PHP-7.1'
2016-11-30 02:57:34 +01:00
Bob Weinand
7aaa1a876e
Merge branch 'PHP-7.0' into PHP-7.1
2016-11-30 02:57:16 +01:00
Bob Weinand
b73a3afff3
Fixed bug #73615 (phpdbg without option never load .phpdbginit at startup)
2016-11-30 02:56:47 +01:00
Bob Weinand
5a4bad7b5f
Merge branch 'PHP-7.1'
2016-11-13 13:22:50 +01:00
Bob Weinand
ef657978b2
Merge branch 'PHP-7.0' into PHP-7.1
2016-11-13 13:22:35 +01:00
Bob Weinand
ba75d4c50b
Properly escape all filenames when exporting breakpoints
2016-11-13 13:22:06 +01:00
Joe Watkins
6c7e795c15
phpdbg standard input changes
2016-11-13 08:00:15 +00:00
Bob Weinand
601ab6e9d0
Fix searching for catch blocks
...
Since PHP-7.1 catch blocks are addressed with relative byte difference between two catch blocks as opposed to absolute opcode number
2016-10-16 12:34:10 +02:00
Bob Weinand
f40c03168e
Merge remote-tracking branch 'origin/PHP-7.0' into PHP-7.1
...
(cherry picked from commit 457e686262
)
2016-10-14 01:54:18 +02:00
Nikita Popov
6baaccc9b6
Merge branch 'PHP-7.0' into PHP-7.1
...
(cherry picked from commit 9669ec707a
)
2016-10-14 01:53:25 +02:00
Bob Weinand
11e7447e04
Merge branch 'PHP-7.0' into PHP-7.1
...
(cherry picked from commit 37ae5f3931
)
2016-10-14 01:48:03 +02:00
Bob Weinand
fe49fd7dad
Update NEWS
...
Also add missing include.inc test file
2016-10-12 22:54:32 +02:00
Nikita Popov
fe378c27cc
Fix phpdbg tests after lineno change
2016-10-12 22:41:59 +02:00
Bob Weinand
5aae01104f
Add stdin command and -s command line parameter to phpdbg
...
This allows reading the initial script file from stdin instead of being forced to put the script into a file in order to run it with phpdbg.
Especially important for programmatic execution of phpdbg.
Also adding tests/include_once.phpt and tests/set_exception_handler.phpt as I seem to have forgotten to git add them sometime long ago...
2016-10-12 20:15:49 +02:00
Bob Weinand
f58cf8b24d
Merge branch 'PHP-7.0' into PHP-7.1
2016-10-02 12:46:22 +01:00
Bob Weinand
417a8ef6b4
Fix run command args passing when inmidst execution
2016-10-02 12:45:20 +01:00
Anatol Belski
8f256bebef
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
phpdbg next command must stop when leaving function
2016-09-23 11:25:33 +02:00
Bob Weinand
cf35dae6e2
phpdbg next command must stop when leaving function
2016-09-23 03:29:37 +02:00
Bob Weinand
517bbb14fd
Disable optimizer when it conflicts with phpdbg tests
2016-07-13 10:22:00 +02:00
Bob Weinand
b00376884e
Rewrite watchpoints to be much more stable
...
This mainly involves a separate abstraction layer for elements (e.g. $a->b) and watchpoints (on pointer of the Bucket for example).
Also better comparison handling (value backup vs. page dumps).
It is not yet finished (there are sometimes false positives announced and names not yet perfect), but the functionality is working and not crashing as far as I have tested.
Future scope is also relative watchpoints, e.g. "w $this->val expression()" which does not have the symbol tables as basis, but the value (in this example: return value of expression()) as basis.
2016-07-11 23:58:20 +02:00
Dmitry Stogov
d898344663
Inline simple constant functions
2016-06-30 17:04:25 +03:00
Dmitry Stogov
2ae21abdf7
Fixed bug #72213 (Finally leaks on nested exceptions).
...
Squashed commit of the following:
commit 8461b0407f
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed May 25 00:34:42 2016 +0300
Rmoved zend_try_catch_element.parent and walk through op_array.try_catch_array backward from the current try_cacth_offset.
commit 0c71e24964
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed May 25 00:04:53 2016 +0300
Move SAVE_OPLINE() to its original place
commit 111432a4df
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed May 25 00:01:10 2016 +0300
Separate the common part of ZEND_HANDLE_EXCEPTION and FAST_RET into zend_dispatch_try_catch_finally_helper.
commit 4f21c06c2e
Author: Nikita Popov <nikic@php.net>
Date: Tue May 24 14:55:27 2016 +0200
Improve finally fix
commit da5c727499
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue May 24 10:36:08 2016 +0300
Fixed Zend/tests/try/bug70228_3.phpt and Zend/tests/try/bug70228_4.phpt
commit cfcedf2fb4
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue May 24 02:59:27 2016 +0300
Added test
commit 4c6aa93d43
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue May 24 00:38:20 2016 +0300
Added tests
commit 8a8f4704b0
Author: Dmitry Stogov <dmitry@zend.com>
Date: Mon May 23 23:27:34 2016 +0300
Fixed bug #72213 (Finally leaks on nested exceptions)
2016-05-25 01:25:12 +03:00
Dmitry Stogov
be071702b3
Fixed bug #72188 (Nested try/finally blocks losing return value)
2016-05-13 14:38:43 +03:00
Nikita Popov
8e5b139732
Evaluate arguments of new for classes without ctor
...
ML: http://markmail.org/message/4b3mk7jid64zvz34
2016-03-25 19:11:37 +01:00
Nikita Popov
af255c67eb
Make op1/op2 decoding in phpdbg more complete
2016-01-21 21:58:23 +01:00
Xinchen Hui
41dcdb1d73
Merge branch 'PHP-7.0'
2016-01-01 13:46:44 +08:00
Xinchen Hui
05defb4f56
Fixed test after fix lineno of finally
2016-01-01 13:46:19 +08:00
Xinchen Hui
f43baba1f9
Fixed test by disable opcache
2015-12-10 21:46:37 +08:00
Xinchen Hui
e80791e161
Fixed test (opcache denpends)
2015-12-09 07:52:03 -08:00