Christoph M. Becker
502b187ae8
Fix #75282 : xmlrpc_encode_request() crashes
...
Since we allow ext/xmlrpc to be built against a system libxmlrpc(-epi),
we must not `efree` memory which has been allocated via `malloc`. To
distinguish bundled and system libxmlrpc(-epi) we introduce the macro
`HAVE_XMLRPC_BUNDLED` (analogous to how it is done by ext/gd). We
deliberately keep the ugly `#ifdef`s, instead of tucking them away in
an `XMLRPC_FREE()` macro, to not forget that it is a bad idea to fork
and bundle a library, but to also allow building against an unpatched
system lib.
2018-10-21 12:06:55 +02:00
Peter Kokot
60a69daec6
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
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-14 12:54:08 +02:00
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Nikita Popov
aa925cb0ad
Merge branch 'PHP-7.1' into PHP-7.2
2017-08-02 18:50:18 +02:00
Nikita Popov
4988e83fe9
Merge branch 'PHP-7.0' into PHP-7.1
2017-08-02 18:50:04 +02:00
Andreas Treichel
c2b8066efb
Bug #74975 : Different serialization for classes
2017-08-02 18:49:26 +02:00
Sammy Kaye Powers
dac6c639bb
Update copyright headers to 2017
2017-01-04 11:23:42 -06:00
Sammy Kaye Powers
478f119ab9
Update copyright headers to 2017
2017-01-04 11:14:55 -06:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Anatol Belski
b204b3abd1
further normalizations, uint vs uint32_t
...
fix merge mistake
yet one more replacement run
2016-11-26 17:29:01 +01:00
Joe Watkins
3a0872d08f
Implement #72612 (libxmlrc uses system malloc instead of PHP alloc routines)
2016-10-19 13:43:31 +01:00
Xinchen Hui
6929121423
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:15:15 +08:00
Xinchen Hui
df358a1c06
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:14:28 +08:00
Xinchen Hui
516837344e
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:13:42 +08:00
Aaron Piotrowski
24237027bc
Merge branch 'throw-error-in-extensions'
2016-07-05 02:08:39 -05:00
Dmitry Stogov
1616038698
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
...
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.
2016-06-21 16:00:37 +03:00
Aaron Piotrowski
771e5cc247
Replace zend_ce_error with NULL and replace more E_ERROR with thrown Error
2016-06-13 09:02:17 -05:00
Aaron Piotrowski
e3c681aa5c
Merge branch 'master' into throw-error-in-extensions
2016-06-10 22:02:23 -05:00
Xinchen Hui
d1dd9b4558
Re-Fixed bug #72155 (use-after-free caused by get_zval_xmlrpc_type)
2016-05-31 11:44:20 +08:00
Xinchen Hui
a811b5e38d
Revert "fix #72155 (use-after-free caused by get_zval_xmlrpc_type)"
...
This reverts commit 1690dcb827
.
2016-05-31 11:32:09 +08:00
Joe Watkins
1690dcb827
fix #72155 (use-after-free caused by get_zval_xmlrpc_type)
2016-05-30 08:56:50 +01:00
Hieu Le
ace71b4c5f
Fix bug #71501
2016-02-04 11:44:56 +01:00
Anatol Belski
b0285db4b7
fix merge mistake
2016-01-04 17:33:23 +01:00
Julien Pauli
ef4449a8e8
Fixed #70728
...
Conflicts:
ext/xmlrpc/xmlrpc-epi-php.c
2016-01-04 17:31:34 +01:00
Lior Kaplan
ed35de784f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Happy new year (Update copyright to 2016)
2016-01-01 19:48:25 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Xinchen Hui
de6ee4c24f
Fixed bug #70526 (xmlrpc_set_type returns false on success)
2015-09-19 06:10:48 -07:00
Aaron Piotrowski
907476f34c
Convert E_ERROR to thrown Error in extensions
2015-07-05 12:16:57 -05:00
Dmitry Stogov
4a2e40bb86
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
2015-06-30 04:05:24 +03:00
Rasmus Lerdorf
28d7bb97a1
Fix more proto comments
2015-06-23 17:46:20 -04:00
Anatol Belski
663074b6b1
cleanup mod version macros and mod defs, round x
2015-03-23 21:30:22 +01:00
Xinchen Hui
942809909e
Cleanup resource handling APIs
2015-02-02 13:23:16 +08:00
Xinchen Hui
fc33f52d8c
bump year
2015-01-15 23:27:30 +08:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00
Anatol Belski
c00424e427
bring back all the TSRMLS_FETCH() stuff
...
for better comparability with the mainstream
2014-10-15 09:37:55 +02:00
Anatol Belski
6b9a26fb65
cleanup TSRMLS_FETCH in ext/xmlrpc
2014-09-26 21:01:43 +02:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00
Anatol Belski
03bf8c256b
fix type
2014-09-12 21:35:22 +02:00
Anatol Belski
6db8d4f829
's' works with size_t round 3
2014-08-27 20:49:36 +02:00
Anatol Belski
3234480827
first show to make 's' work with size_t
2014-08-27 20:49:31 +02:00
Anatol Belski
af59e92b24
master renames phase 7
2014-08-25 21:51:49 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
97c5172ac7
Merge remote-tracking branch 'php/master'
...
Conflicts:
ext/date/lib/parse_date.c
2014-08-19 08:27:43 +02:00
Anatol Belski
53c4c571b3
C89 compat
2014-08-19 08:16:34 +02:00
Anatol Belski
63d3f0b844
basic macro replacements, all at once
2014-08-19 08:07:31 +02:00
Dmitry Stogov
c1965f58d4
Use reference counting instead of zval duplication
2014-06-05 16:04:11 +04:00
Dmitry Stogov
a21e6d6ed9
Fixed double free
2014-05-19 13:11:20 +04:00
Xinchen Hui
b0f434c3dd
Fixed double free (xmlrpc is done, 1 test failed due to knew issue)
2014-05-12 20:40:08 +08:00