Nikita Popov
85095dfd09
Fixed bug #72175
...
Make sure we don't close the connection we're trying to reuse...
2019-03-25 16:41:21 +01:00
Peter Kokot
f1d7e3ca0b
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:31:31 +02:00
Peter Kokot
17ccbeec32
Trim trailing whitespace in *.phpt
2018-10-14 19:44:14 +02:00
Peter Kokot
902d39a3a7
Trim trailing whitespace in source code files
2018-10-13 14:14:50 +02:00
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Joe Watkins
1a72d3225c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect
2017-10-30 06:55:58 +00:00
Joe Watkins
63c0ecc445
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect
2017-10-30 06:55:28 +00:00
Fabien Villepinte
e6aea3dc78
Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect
2017-10-30 06:55:00 +00:00
Nikita Popov
035a27cbc6
Only compute callback name in error cases
...
Mostly the callback name is only used to report an error. Try to
avoid calculating it if no error occurred.
2017-06-25 18:45:59 +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
Nikita Popov
45f7b2bcc8
Fix CRLF line-endings in tests
...
Also fix a single instance of CRLF in ibase_query.c.
2016-11-20 22:31:24 +01:00
Remi Collet
548cbcc929
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed bug #73512 Fails to find firebird headers
2016-11-16 10:47:18 +01:00
Remi Collet
397bedcc7c
Fixed bug #73512 Fails to find firebird headers
...
- use fb_config output instead of relying on hardoded path
2016-11-16 10:47:02 +01:00
Anatol Belski
4a08836d47
fix borked interbase patch
2016-08-11 15:08:26 +02:00
Kalle Sommer Nielsen
197051f3ab
Remove sql.safe_mode
...
This is one of the last old and odd deprecated settings we still have in PHP, it was never fully implemented in all the database extensions and should probably have been gone back in 5.4, along with safe_mode. Although if my memory strikes me right, mysql was also supporting it back then, but not mysqli.
So far only interbase was supporting this feature, and the removal of it causes two effects for interbase:
- CREATE DATABASE is now allowed no matter
- The default database set by php.ini (ibase.default_db) is no longer forced
http://php.net/ini.core#ini.sql.safe-mode
2016-08-11 05:06:55 +02: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
Anatol Belski
e9eeb5edb9
fix test portability
2016-06-17 09:05:27 +02:00
Xinchen Hui
a5718539b1
Fixed build
2016-04-29 11:13:15 +08:00
Xinchen Hui
a05320c419
Use zend_string_safe_alloc
2016-04-27 20:29:11 +08:00
Anatol Belski
be5bbe7068
fix ibase connection routine
...
followup on a7028d96
2016-03-04 12:26:25 +01:00
Tjerk Meesters
a7028d9671
Fix one zpp usage in interbase
...
Also small tweak to zpp REAME
2016-03-03 23:50:02 +01:00
Nikita Popov
1ac152938c
Move semicolon into TSRMLS_CACHE_EXTERN/DEFINE
...
Also re bug #71575 .
2016-03-03 16:50:01 +01:00
Xinchen Hui
262f09d678
Fixed macro name
2016-01-14 14:49:23 +08:00
Anatol Belski
4e7cb057a0
partial test fixes, only obvious mistaking parts
2016-01-12 10:44:55 +01:00
Anatol Belski
d8e2b8424f
remove the unnecessary condition part
2016-01-12 10:22:10 +01:00
Anatol Belski
8e7c469f82
fix possible buffer overrun in the errmsg string
2016-01-12 10:17:32 +01:00
Anatol Belski
b54739e68d
integrate tsrmls cache
2016-01-12 09:42:38 +01:00
Anatol Belski
1f6612541f
fix out format
2016-01-11 20:57:34 +01:00
Anatol Belski
39e571c8d8
further datatype and range check fixes for ibase
2016-01-11 09:46:53 +01:00
Anatol Belski
57a2a8d4fa
datatype fixes
2016-01-11 08:52:54 +01:00
Anatol Belski
23fa54b908
fix typo for #ifdef
2016-01-11 08:37:16 +01:00
Xinchen Hui
8bfa5193d5
Fix various bugs in interbase
...
Also read: https://marc.info/?l=php-internals&m=145077389117375&w=2
2016-01-11 08:32:47 +01:00
Xinchen Hui
d4da32d312
Fixed bug #71280 (ibase_blob_add() expects parameter 2 to be resorce)
2016-01-05 23:02:17 +08: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
Dmitry Stogov
c7c3b967a5
Removed invalid efree() (arguments are allocated on VM stack and used without copying)
2015-12-16 15:25:49 +03:00
Nikita Popov
1287c48082
Fix/improve zpp usage
...
The ext/interbase changes are done blindly, fingers crossed.
Some of these are bug fixes, some make zpp usage more idiomatic.
2015-10-02 09:35:00 +02:00
Anatol Belski
4e66cce87c
switch to the unified globals accessor where appropriate
2015-07-29 13:26:35 +02:00
Dmitry Stogov
9ea98d676b
Cleanup (avoid reallocations)
2015-07-02 18:58:04 +03:00
Dmitry Stogov
0fd2b4c030
Cleanup (avoid reallocation)
2015-07-02 18:50:54 +03:00
Dmitry Stogov
7aa7627172
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
2015-06-30 13:59:27 +03:00
Anatol Belski
2d78023244
cleanup the mod version macros, round 2
2015-03-23 20:33:54 +01:00
Reeze Xia
609f05fc19
ZTS cleanup
2015-03-08 19:25:55 +08:00
Popa Adrian Marius
3e6380d64b
Use Firebird default home folder, replace Interbase with Firebird
2015-02-24 13:58:14 +02:00
Anatol Belski
af3ca74501
made ZEND_TSRMLS_CACHE_* macros look like function calls
...
which also comply with the current semantics for such macros
2015-02-16 17:19:32 +01:00
Popa Adrian Marius
8f968c5416
Apply PHP7 firebird fixes after API Cleanup from 8c920a22ac
2015-02-13 17:55:17 +02:00
Michael Wallner
0d267bdecc
Merge branch 'close_cor' of github.com:MegaManSec/php-src
...
* 'close_cor' of github.com:MegaManSec/php-src:
Fix interbase va_start
2015-01-30 23:05:10 +01:00
Popa Adrian Marius
b9868f23a0
fbird_close if connection_id omitted, the last opened link is assumed , so it was already closed
2015-01-28 15:39:42 +02:00