22 Commits

Author SHA1 Message Date
Darek Slusarczyk
a4406f9f59 Follow PHP practice and remove yearly range from copyright notice 2021-01-22 18:13:08 +01:00
Darek Slusarczyk
c4930e0a02 Follow PHP practice and remove yearly range from copyright notice 2021-01-22 16:31:33 +01:00
Darek Slusarczyk
9456495070 orabug #30134451: mysqlndx replace raw zval with improved zvalue where possible
- add util/functions.h|.cc and rename related functions
- and util/arguments.h|.cc
2020-08-12 17:28:30 +02:00
Darek Slusarczyk
a75ced6a60 orabug #30134451: mysqlndx replace raw zval with improved zvalue where possible
- add util::raw_zvals to process variable number of zval* arguments (zval[])
- move raw_zval to util::raw_zval
- apply util::raw_zvals in mysqlx_collection.cc and mysqlx_collection__add.cc
- rename mysqlx_new_* functions to create_*
2020-07-31 08:30:31 +02:00
Darek Slusarczyk
4906c05a39 orabug #30134451: mysqlndx replace raw zval with improved zvalue where possible
- refactor mysqlx_new* functions with util::init_object to use and return util::zvalue
- introduce raw_zval (temporary?) alias for zval (used where raw zval may be not replaced by util::zvalue)
- remove unnecessary util/hash_table.cc|.h
2020-07-29 22:21:28 +02:00
Darek Slusarczyk
cd04725f76 WL#13014 DevAPI: Add schema validation to create collection
- fix issues with parsing json document with validation schema
2020-03-20 21:07:25 +01:00
Darek Slusarczyk
0bd71fe407 copyrights update 2019 => 2020 2019-11-06 12:29:29 +01:00
Darek Slusarczyk
9110609c57 orabug #30226232: incorrect behaviour of chained CRUD ops in webserver mode
- CRUD Collection.Add: fix wrong management of raw zvals which was the main reason of incorrect behaviour (in Collection_add there was kept zval* object_zv;)
- fix related tests/add_with_empty_arg_is_noop.phpt
- add json_api.h header to safely include <ext/json/...> headers
- improvements in util::zvalue
2019-08-26 19:31:08 +02:00
Darek Slusarczyk
670670c4aa orabug #30096952: add support for building in static mode
- add support for static builds on win
2019-07-25 21:52:06 +02:00
Darek Slusarczyk
921771f069 orabug #30084593: get rid of vim "decorators"
- remove all footers with vim params, similarly as PHP devs removed it in PHP-7.4
2019-07-23 22:29:44 +02:00
Darek Slusarczyk
a91892b9b6 Fixes due to removed MYSQLND_LLU_SPEC
- fix weird compilation errors on unx targets
2019-07-10 23:56:31 +02:00
Darek Slusarczyk
19c8569ff0 Fixes due to removed MYSQLND_LLU_SPEC
changes regards PHP-7.4+ vide commit:

Revision: 52d80ccd2401b3b67be08f7e584f04ca1174462e
Author: Nikita Popov <nikita.ppv@gmail.com>
Date: 12.06.2019 12:54:11
Message:
Remove MYSQLND_LLU_SPEC/MYSQLND_LL_SPEC

No longer used, replaced by PRIu64/PRIi64.
----
Modified: ext/mysqlnd/mysqlnd_portability.h
2019-07-09 22:46:17 +02:00
Darek Slusarczyk
c78477911a Fixes due to removed MYSQLND_LLU_SPEC
changes regards PHP-7.4+ vide commit:

Revision: 52d80ccd2401b3b67be08f7e584f04ca1174462e
Author: Nikita Popov <nikita.ppv@gmail.com>
Date: 12.06.2019 12:54:11
Message:
Remove MYSQLND_LLU_SPEC/MYSQLND_LL_SPEC

No longer used, replaced by PRIu64/PRIi64.
----
Modified: ext/mysqlnd/mysqlnd_portability.h
2019-07-05 21:14:13 +02:00
Filip Janiszewski
f150500677 WL#12188: Prepared Statement
Implementation of the feature
2019-02-26 08:14:17 +01:00
Darek Slusarczyk
74b67067f4 copyrights update 2018 => 2019 2019-02-01 22:14:35 +01:00
Darek Slusarczyk
a0ac2bb5bb - clear warnings for msvc /W4 level
- move macros to compiler_utils.h
2018-07-01 22:05:27 +02:00
Darek Slusarczyk
98146eb152 build refactoring
- fix macros to locally suppress warnings
2018-06-25 01:02:34 +02:00
Darek Slusarczyk
2d2fa4fae3 - clear warnings for msvc /W4 level
- add macros to locally suppress warnings
2018-06-24 07:02:29 +02:00
Darek Slusarczyk
976cbcb46c - gather all mysqlnd headers in one mysqlnd_api.h header
- clear warnings for msvc /W4 level
- add MYSQLX_* macros to overwrite some ZEND_ macros to clear/suppress above warnings
- overwrite some mysqlnd DBG_ macros to clear/suppress above warnings
- UNUSED* macros for unreferenced variables
2018-06-23 19:23:09 +02:00
Darek Slusarczyk
be838d6afa - clear warnings
- enable 'treat warnings as errors'
- refactoring dynamically allocated char* to util::string
2018-01-20 18:24:30 +01:00
Darek Slusarczyk
4ecb215b05 Copyrights year bulk update 2017 => 2018 2018-01-15 14:58:38 +01:00
Darek Slusarczyk
6776ba84dd - php_api.h added to cover all tweaks for <php.h> (#undefs)
- in all sources #include "php_api.h" instead of <php.h>
- #undef add_method - it comes from
./Zend/zend_API.h : 560
#define add_method(arg, key, method)	add_assoc_function((arg), (key), (method))
- and conflicts with protobufs:
a) linux:
/usr/local/include/google/protobuf/descriptor.pb.h:1738:57: error: macro "add_method" requires 3 arguments, but only 1 given
   ::google::protobuf::MethodDescriptorProto* add_method();
b) win:
1>t:\protobuf\3.1.0\x86\debug\include\google\protobuf\descriptor.pb.h(1812): warning C4003: not enough actual parameters for macro 'add_method'
1>t:\protobuf\3.1.0\x86\debug\include\google\protobuf\descriptor.pb.h(1812): error C2059: syntax error: '('
2017-10-30 17:56:02 +01:00