317 Commits

Author SHA1 Message Date
Remi Collet
05049db61d display extension version in phpinfo 2019-05-23 10:34:19 +02:00
Nikita Popov
2044c06d94 Merge branch 'PHP-7.3' into PHP-7.4 2019-03-25 16:43:33 +01:00
Nikita Popov
9bca6431be Merge branch 'PHP-7.2' into PHP-7.3 2019-03-25 16:43:21 +01:00
Nikita Popov
e845320128 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
60fc212c58 Remove local variables
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.

A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.

This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.

With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.

Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files.  All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
2019-02-03 21:03:00 +01:00
Zeev Suraski
ac41db6819 Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
Gabriel Caruso
31a4994044 Clean up unnecessary ternary expressions and simplify some returns
- Simplify conditions
- Use ZEND_HASH_APPLY_* instead of hard-coded booleans
- Use ZEND_NORMALIZE_BOOL
- Drop sign in favor of ZEND_NORMALIZE_BOOL
2018-12-03 01:22:14 +01:00
Gabriel Caruso
1ec30c2b33 Use variables that already received ZEND_NUM_ARGS() 2018-07-22 15:54:00 -03:00
Kalle Sommer Nielsen
52f9f08f26 Fixed bug #76443 (php+php_interbase.dll crash on module_shutdown) 2018-06-11 11:50:39 +02:00
Dmitry Stogov
3329c6d58b Removed "dead" code (zend_hash_update() never fails) 2018-06-01 11:58:57 +03:00
Nikita Popov
a0665b9adc Don't directly access refcount in interbase 2018-01-12 18:38:45 +01:00
Xinchen Hui
9115516ea5 year++ 2018-01-02 12:57:58 +08:00
Xinchen Hui
1945e5b7aa year++ 2018-01-02 12:55:14 +08:00
Dmitry Stogov
c4a2f7b3e7 Move constants into read-only data segment 2017-12-14 18:43:44 +03:00
Dmitry Stogov
fd31e05f6b Persistent resources are "thread-local".
Register persistent resources through new functions zend_register_persistent_resource()/zend_register_persistent_resource_ex().
2017-11-01 15:19:31 +03:00
Joe Watkins
7f1f1e4f2b Merge branch 'PHP-7.2'
* PHP-7.2:
  Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect
2017-10-30 06:56:20 +00:00
Joe Watkins
609ed651fd 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
Fabien Villepinte
350ffc9710 Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect 2017-10-30 06:55:00 +00:00
Kalle Sommer Nielsen
764152bff0 Free the HMODULE handle after use 2017-07-21 22:21:25 +02:00
Sammy Kaye Powers
b0413572cc Update copyright headers to 2017 2017-01-04 11:14:55 -06:00
Sammy Kaye Powers
cc64885cca Update copyright headers to 2017 2017-01-02 09:30:12 -06:00
Kalle Sommer Nielsen
dee8093b17 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
Anatol Belski
13569217f2 fix ibase connection routine
followup on a7028d96
2016-03-04 12:26:25 +01:00
Tjerk Meesters
2f6757fd4c Fix one zpp usage in interbase
Also small tweak to zpp REAME
2016-03-03 23:50:02 +01:00
Nikita Popov
6a0e03940a Move semicolon into TSRMLS_CACHE_EXTERN/DEFINE
Also re bug #71575.
2016-03-03 16:50:01 +01:00
Anatol Belski
105a9b54cd remove the unnecessary condition part 2016-01-12 10:22:10 +01:00
Anatol Belski
cbd65a4bfb fix possible buffer overrun in the errmsg string 2016-01-12 10:17:32 +01:00
Anatol Belski
774a1f9e43 integrate tsrmls cache 2016-01-12 09:42:38 +01:00
Anatol Belski
1ead5762de further datatype and range check fixes for ibase 2016-01-11 09:46:53 +01:00
Anatol Belski
d19869963e datatype fixes 2016-01-11 08:52:54 +01:00
Xinchen Hui
be61597106 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
Lior Kaplan
dd6c050a1b 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
886211ce09 Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
Nikita Popov
4b0f50da5d 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
a7e11fb65e cleanup the mod version macros, round 2 2015-03-23 20:33:54 +01:00
Popa Adrian Marius
6fa5f75344 Apply PHP7 firebird fixes after API Cleanup from 8c920a22ac 2015-02-13 17:55:17 +02:00
Joshua Rogers
d420546b81 Fix interbase va_start 2015-01-27 09:50:16 +11:00
Popa Adrian Marius
03fc1bb6ce Revert "Remove Jouni Ahto from maintainers and files as requested , anyway we have git blame/history"
This reverts commit 7cf1450df14b8da0c3c255470ebe4c237fb49b88.
2015-01-22 10:16:51 +02:00
Popa Adrian Marius
bcfaec95c3 Remove Jouni Ahto from maintainers and files as requested , anyway we have git blame/history 2015-01-21 18:08:56 +02:00
Xinchen Hui
0ab7a94683 bump year 2015-01-15 23:27:30 +08:00
Xinchen Hui
aa87420d2e bump year 2015-01-15 23:26:37 +08:00
Stanislav Malyshev
6e3c48ec69 trailing whitespace removal 2015-01-10 15:07:38 -08:00
Anatol Belski
5a7642d2b8 second shot on removing TSRMLS_* 2014-12-14 14:07:59 +01:00
Anatol Belski
78ffe57ca3 first shot remove TSRMLS_* things 2014-12-13 23:06:14 +01:00
Johannes Schlüter
f6b9aa7e6b s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
Xinchen Hui
1c065a0ee7 resource type is int 2014-08-29 11:28:21 +08:00
Anatol Belski
3d719c3872 first show to make 's' work with size_t 2014-08-27 20:49:31 +02:00
Anatol Belski
7c44487601 master renames phase 7 2014-08-25 21:51:49 +02:00
Anatol Belski
64bd9b7116 master renames phase 1 2014-08-25 19:24:55 +02:00
Anatol Belski
685f240b14 basic macro replacements, all at once 2014-08-19 08:07:31 +02:00