Commit Graph

599 Commits

Author SHA1 Message Date
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Ilia Alshanetsky
992033a41c MFB: Fixed bug #46887 (Invalid calls to php_error_docref()) 2008-12-18 20:04:26 +00:00
Johannes Schlüter
1275a176e9 Change to zend_parse_parameters 2008-11-28 20:36:48 +00:00
Dmitry Stogov
e5454b359a Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:02:45 +00:00
Etienne Kneuss
8251921307 Fix #46241 (stacked error_handlers, error_handling in general) 2008-11-19 01:59:07 +00:00
Andrey Hristov
983f575f22 Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
2008-11-18 16:54:38 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Andrey Hristov
68d9aac6d2 Remove unneeded cast 2008-11-10 20:04:56 +00:00
Ilia Alshanetsky
e767480c8f Fixed compiler warnings 2008-11-10 19:03:57 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00
Andrey Hristov
7e1a12673b Fix warnings in printf 2008-10-31 20:30:55 +00:00
Andrey Hristov
35829ec7ed Fix compiler warning (MFB: Ilia) 2008-10-28 10:45:31 +00:00
Johannes Schlüter
96b3cd0a64 Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement is
executed)
2008-10-27 17:20:26 +00:00
Andrey Hristov
7d9744ae61 Fix tests 2008-10-27 14:33:09 +00:00
Andrey Hristov
526345b3a0 Fix bug found in a test. mysqli.default_port wasn't used 2008-10-27 14:30:51 +00:00
Andrey Hristov
e8e843b39e Warning if the library API version differs from the headers used to compile.
Patch versions are not considered but major.minor
Fix build of ext/mysql with 4.0.x and pre.
2008-10-27 12:07:35 +00:00
Felipe Pena
7eb2715464 - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:34:17 +00:00
Pierre Joye
febc0cf611 - MFB: Declarations MUST BE done in the beginning of a context 2008-10-03 16:20:56 +00:00
Andrey Hristov
82310caccb Fix the libmysql build. Unintentionally broken by my last commit. 2008-09-19 11:39:53 +00:00
Andrey Hristov
722b9135d9 Fix for bug#46019 MySQLi::init() leaks memory 2008-09-19 11:35:37 +00:00
Antony Dovgal
2285d87ced fix test 2008-09-18 08:40:20 +00:00
Andrey Hristov
9b48b002f6 Add float conversions too. Float users should understand how float works!!! 2008-09-15 18:07:58 +00:00
Antony Dovgal
a46a628c7d clean up garbage 2008-08-26 11:05:59 +00:00
Antony Dovgal
cdf442f043 fix typo 2008-08-26 10:59:03 +00:00
Johannes Schlüter
2888aa20d1 - Fix #45763 (mysqli::multi_query does not work with mysqlnd) 2008-08-11 12:32:47 +00:00
Etienne Kneuss
b8aa44644d Fix error_handling usage in various extensions 2008-08-08 22:06:42 +00:00
Felipe Pena
611ecc5111 - Added parameter TSRMLS_DC in zend_is_callable() 2008-08-02 04:40:45 +00:00
Andrey Hristov
cab531026b Fix bug#45019 Segmentation fault with SELECT ? and UNION 2008-07-25 12:45:27 +00:00
Dmitry Stogov
013059c247 Fixed uninitialized data 2008-07-25 08:53:11 +00:00
Andrey Hristov
613e045ae8 Added test file 2008-07-24 14:17:27 +00:00
Andrey Hristov
40267cdcf8 Fixed bug#44897 - failed to prepare statement
After a PS "CALL()" we have at least one result set. If the SP does also some, then
we need to clean the wire more fool-proof.
2008-07-23 14:06:31 +00:00
Andrey Hristov
9f0b69086c Two less failing tests, one of which was definitely a leak in mysqli with mysqlnd
and pconn. ext/mysql is being fixed with a better fix for similar leak.
2008-07-22 23:43:14 +00:00
Andrey Hristov
0df974b7a5 MFB :
Fix for bug#45179 --with-mysql-sock fails to compile & work
Now --with-mysql-sock controls all mysql extensions. If provided it will be
the default value as it was set in php.ini . php.ini will override it for
ext/mysql and ext/mysqli but not for pdo_mysql
2008-07-21 13:01:41 +00:00
Dmitry Stogov
0cfa6a5977 support for closures 2008-07-17 09:52:51 +00:00
Andrey Hristov
73dfa53ca8 Sync with bzr 2008-07-15 13:12:27 +00:00
Andrey Hristov
fd699ce7d3 Fix possible bug with persistent connections 2008-06-24 11:19:07 +00:00
Andrey Hristov
5da78b297b Update ext/mysql's and ext/mysqli's tests
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.
2008-04-24 14:04:58 +00:00
Andrey Hristov
c931468b88 Update ext/mysql, ext/mysqli and ext/mysqlnd from development tree 2008-04-16 12:53:18 +00:00
Andrey Hristov
212c00cd1a Fix snapshot build 2008-04-08 07:46:05 +00:00
Andrey Hristov
1bf96fdf5c MFB : Fix for Bug #43832 mysqi_get_charset() doesn't expose charset comment 2008-03-25 18:28:13 +00:00
Andrey Hristov
9732763eca Small fix and a test case to prove it 2008-03-20 15:34:09 +00:00
Andrey Hristov
46df4529be Missing lines from the param-bind-non-changing fix 2008-03-20 13:58:46 +00:00
Andrey Hristov
0e884df573 - Don't modify the variables which are passed for parameter binding.
We need to clone them, if there will be a transformation (convert_to_xxx)
  which will change the origin.
- Make mysqlnd more compatible to libmysql, in this case if the execute of
  a statement fails set the state of the statement back to PREPARED
- A test case to check the case of a failing statement.
2008-03-20 13:25:49 +00:00
Andrey Hristov
86cc5d9325 MFB : fix the build 2008-03-18 17:32:03 +00:00
Andrey Hristov
e53f44b9bd MFB - Bug #44352 mysqli_connect_error() false negative for host errors 2008-03-18 16:58:43 +00:00
Andrey Hristov
60869b3e8e Update mysqlnd, ext/mysql and ext/mysqli - now possible to compile with different
configurations one or the another extension to use libmysql or mysqlnd mixed in
one binary
2008-03-10 20:27:15 +00:00
Johannes Schlüter
e883735e64 Fix typo 2008-03-10 13:38:23 +00:00
Johannes Schlüter
0cd7f31de0 - Fix build with older MySQL 2008-03-10 13:26:15 +00:00
Andrey Hristov
a8e4046c72 - Fix a warning in php_mysql.c
- Fixed #44371 Extension compile failed
2008-03-10 09:16:13 +00:00
Andrey Hristov
cd9b7889ec Bug fixed in MySQL 5.0.46 2008-03-08 15:17:45 +00:00
Andrey Hristov
f20d47c541 MFB:
- Fixed problem with $mysqli->connect() not connecting with defaults
- Fixed leak (#39475)
2008-03-08 15:16:08 +00:00
Felipe Pena
2818d4fc51 New way for check void parameters 2008-03-04 23:39:15 +00:00
Andrey Hristov
237e147191 Fix test. Now passes. 2008-02-20 18:28:37 +00:00
Andrey Hristov
d5aaeda6e4 Fix a failing test 2008-02-19 17:22:05 +00:00
Andrey Hristov
7b0625865b Fix a compile warning + test 2008-02-19 15:38:24 +00:00
Andrey Hristov
038a533d65 Fix Windows build. VC doesn't like nested macros - expansion + #if 2008-02-12 22:06:06 +00:00
Johannes Schlüter
35bfb9028f - Fix build with TSRM and mysqlnd 2008-02-12 20:18:56 +00:00
Antony Dovgal
4a7c24b267 nuke unnecessary TSRMLS_FETCH() 2008-02-12 10:54:27 +00:00
Andrey Hristov
a4c1bc02b7 Fix typo 2008-02-12 10:51:25 +00:00
Andrey Hristov
82ad02f0cd cvs sync 2008-02-11 16:45:15 +00:00
Andrey Hristov
533618d2a0 Remove dead code 2008-02-08 09:57:01 +00:00
Andrey Hristov
0c65a68fc9 Fix a bug and a test 2008-02-06 14:11:32 +00:00
Andrey Hristov
bb4051d480 Fix test 2008-02-06 13:01:30 +00:00
Andrey Hristov
ac3d36818f Pconnect working with mysqli_real_connect() 2008-02-06 11:35:44 +00:00
Andrey Hristov
cfcf16f0f7 Fix a leak and memory warning. 2008-02-04 17:32:43 +00:00
Dmitry Stogov
42a683d688 Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:56:22 +00:00
Andrey Hristov
6d9fdbce50 MFB:
some config.w32 fixes
moved mysqlnd's block allocator to a separate file and also now
it's part of the connection, no MT problems.
2008-01-28 22:54:21 +00:00
Andrey Hristov
18c8e6501b MFB: More optimizations - less MM calls
Clearly separated fetching (physical reading) from decoding phases (data
interpretation). Threaded fetching added but disabled as needs more work for
Windows. For Linux needs some touches to add pthreads if this is enabled,
probably with a compile-time switch.
The code reorganisation makes it easy to add also async API, similar to
cURL's one.
2008-01-28 18:27:49 +00:00
Ulf Wendel
dd8bda11f8 Those functions have been deprecated and removed. We'll test them only internally
but not bother php.net with it. Unless you really want to have tests for deprecated
and removed functionality...
2008-01-08 13:18:46 +00:00
Ulf Wendel
96c63a378e Looks more than it is. Its whitespace, adding error handling in a few places,
changing SQL statement formatting etc. No "real" changes.
2008-01-08 12:43:08 +00:00
Ulf Wendel
d435cd76df Added:
mysqli_fetch_assoc_zerofill.phpt
    checks for UNSIGNED ZEROFILL

  mysqli_stmt_bind_result_zerofill.phpt
    checks for UNSIGNED ZEROFILL

  mysqli_stmt_bing_call_user_func.phpt
    Needs to be refined once http://bugs.php.net/bug.php?id=43568
    has been closed and a decision has been made on call_user_func_array().
    There seems to be a BC break between 5_2 -> 5_3 .
    Johannes has an eye on it

Modified:

  mysqli_change_user_insert_id.phpt
    skip test for buggy MySQL Server versions

  mysqli_insert_id.phpt
    added additional checks
2008-01-04 18:17:13 +00:00
Ulf Wendel
6b0e5b66fb Fix for Bug #43036 2008-01-04 09:00:35 +00:00
Ulf Wendel
ba1f8fba1d Remove test for deprecated (and removed) function 2008-01-03 17:20:19 +00:00
Johannes Schlüter
584a7c7be8 - Remove more replication stuff 2008-01-03 14:32:52 +00:00
Ulf Wendel
60be62b781 Make it work for MySQL 6.x as well. 2008-01-03 10:19:02 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Ulf Wendel
b9963f50d9 Merge from 5_3. Fixing 32 vs. 64bit issue. 2007-12-28 18:28:21 +00:00
Ulf Wendel
4ba70f548c Merge from 5_3 - MySQL 6.0 SQL fixes 2007-12-28 18:19:17 +00:00
Andrey Hristov
d265efd570 Remove RPL functions. They were always experimental and lead to crashes.
The underlying functions will be removed from libmysql as of MySQL 6.0, so
it's right time to remove them.
2007-12-28 15:38:23 +00:00
Ulf Wendel
5e64d2273e Sync from 5_3. Cutting off a few edges:
- use connection parameter from environment variables
 - check if MySQL supports procedures
 - whitespace
2007-12-28 14:51:26 +00:00
Hartmut Holzgraefe
229919cb55 Fix for bug #42548 "PROCEDURE xxx can't return a result set" 2007-12-25 18:23:07 +00:00
Andrey Hristov
4ba0bd49fb Fix crashes with pconn (merge from 5_3) 2007-11-09 12:13:15 +00:00
Jani Taskinen
f8314496a2 Fix bug headers 2007-10-30 12:06:28 +00:00
Jani Taskinen
aed3360625 - Fixed invalid handling of float value passed to an integer field on 64bit machine 2007-10-29 09:50:49 +00:00
Jani Taskinen
ecdea3117a fix test 2007-10-29 09:03:39 +00:00
Andrey Hristov
43160de684 Fix the build, the w32 files should look like in 5_3 2007-10-23 10:44:25 +00:00
Antony Dovgal
29fd758310 commit lost part of the patch 2007-10-17 08:22:01 +00:00
Antony Dovgal
dc8634add8 use correct dtor and variable for the callback 2007-10-17 08:17:34 +00:00
Antony Dovgal
0655ad3833 use zval_dtor() instead of efree() + FREE_ZVAL() 2007-10-16 13:18:55 +00:00
Andrey Hristov
731a49ed0e MFB: Fix bug due to shadowing of variables. This one is pretty-pretty rare,
caught by source code inspection.
2007-10-16 12:55:38 +00:00
Ulf Wendel
572648d585 Now HEAD should be fine: skip test (by default), if DB connect fails. 2007-10-12 12:40:04 +00:00
Ulf Wendel
7db84d5bcf Fixing test. 2007-10-12 11:52:27 +00:00
Ulf Wendel
534f770ae2 Trying to make them not fail but skip if they cannot connect to the DB. 2007-10-12 11:51:22 +00:00
Ulf Wendel
2027c85be2 Fixing tests. 2007-10-12 11:46:41 +00:00
Ulf Wendel
63103cdbc6 Should be the last commit for HEAD. Now HEAD and 5_3 should have the latest
set of ext/mysqli tests. On Linux 32bit we've about 10 tests failing.
Before the commit we had about 20 tests failing with HEAD.
2007-10-10 10:54:02 +00:00
Ulf Wendel
fc13e57d0f More changes = synching HEAD with 5_3 2007-10-10 10:51:34 +00:00
Ulf Wendel
2dd1b35a85 Commiting changes into HEAD = synching with 5_3 2007-10-10 10:49:00 +00:00
Ulf Wendel
2df3cea685 More updates to the ext/mysqli tests in HEAD = synching with 5_3 2007-10-10 10:46:06 +00:00
Ulf Wendel
eefce01f8d Adding new tests = making sure we're in sync with the 5_3 branch 2007-10-10 10:43:39 +00:00
Andrey Hristov
942e348307 MFB: Move declarations from the public header file. 2007-10-08 15:40:26 +00:00