Commit Graph

310 Commits

Author SHA1 Message Date
Andrey Hristov
7f44538a11 Fix for Bug #51870
PDO::fetchAll after a PDO::execute with bindings lead to a segv.

It is only in unreleased code and thus doesn't deserve a NEWS entry
2010-05-21 11:09:28 +00:00
Pierrick Charron
1892d92d68 Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset 2010-04-27 05:56:56 +00:00
Kalle Sommer Nielsen
dd8e59da8f Removed safe_mode
* Removed ini options, safe_mode*
 * Removed --enable-safe-mode --with-exec-dir configure options on Unix
 * Updated extensions, SAPI's and core
 * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Antony Dovgal
adaf07849d fix typo 2010-04-06 13:42:21 +00:00
Andrey Hristov
7496cc761e decouple the methods in MYSQLND_STMT from the data,
needed to move to a new structure MYSQLND_STMT. Makes
the code cleaner and less error-prone.
Also fix PDO/MySQL which directly touch mysqlnd internals
instead of using API calls.
2010-03-16 12:36:57 +00:00
Johannes Schlüter
ed03634a8c Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling
constructor)
2010-02-11 22:14:06 +00:00
Andrey Hristov
e50de7d982 Pass tsrmls to all functions, which might need it in the future.
We are anyway breaking the internal ABI in 5.3.2 so this won't hurt
and make us prepared for the future.
2010-02-03 17:31:29 +00:00
Gwynne Raskind
775659b921 ZEND_EXTERN_MODULE_GLOBALS() is necessary with ZTS, at least on OS X. How confusing. 2010-01-31 20:00:36 +00:00
Ilia Alshanetsky
6616ceaefa Fixed crash in ZTS mode due to ini values not being initialized 2010-01-31 19:18:56 +00:00
Rasmus Lerdorf
693eff5dc2 Blah, PDO_DBG_ENABLED is a 0/1 toggle 2010-01-31 17:07:31 +00:00
Rasmus Lerdorf
cc4e15ce53 RINIT/RSHUTDOWN do nothing unless PDO_DBG_ENABLED is defined,
so don't waste time calling them on every request.
2010-01-31 16:56:52 +00:00
Ilia Alshanetsky
daa380c0cb Fixed bug #50829 (php.ini directive pdo_mysql.default_socket is ignored) 2010-01-26 13:15:52 +00:00
Johannes Schlüter
6dda7add54 Overlong hostnames breakthistest on NIS enabled FreeBSD 2010-01-21 13:30:46 +00:00
Andrey Hristov
176e6dd2f2 make mysqlnd's tracing API more reusable 2010-01-13 14:06:02 +00:00
Ilia Alshanetsky
d2e14e3f20 Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0) 2010-01-12 12:46:54 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Pierre Joye
af206a90ae - fix build, come on, it is not that hard to test before commit, is it? 2009-12-11 16:35:42 +00:00
Andrey Hristov
c8c250df80 Fix pdo build, forgot to remove the zval caching from pdo-mysql 2009-12-10 09:35:10 +00:00
Pierrick Charron
99ba48dc60 Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN even in the middle of a string). 2009-12-06 21:32:58 +00:00
Pierrick Charron
e2efe4bc7b Fixed bug #45120 (PDOStatement->execute() returns true then false for same statement). 2009-12-03 15:24:43 +00:00
Jani Taskinen
c1aa547b18 - Fixed bug #50231 (Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled) 2009-11-30 15:11:29 +00:00
Rasmus Lerdorf
937358ebc7 Revert attempt at supporting both autoconf 2.13 and
modern versions in the same build chain.  There are
simply too many broken things in 2.13 to make it work.
Cache handling is broken as well which is why I need
to revert the pdo_inc_path cache fix as well.

trunk is now 2.60+ only and I'll work on cleaning out
all the legacy cruft from there.
2009-11-29 06:13:22 +00:00
Rasmus Lerdorf
b442bc3b79 The constructor generates that next line of output, so the expected
output had these 2 lines in the wrong order.  Test your tests!
2009-11-25 05:44:27 +00:00
Rasmus Lerdorf
4507292dfc And there is no 23,24,25 in this test at all. Perhaps these lines were
added to the wrong file by mistake?  Those were the same ones missing from
pdo_mysql___construct_options.phpt
2009-11-25 05:38:33 +00:00
Rasmus Lerdorf
04927191c7 Unless I am completely misreading this test case, these 3 lines at the
end should be in the expected output.
2009-11-25 05:29:57 +00:00
Rasmus Lerdorf
5a2b41a627 Someone strap down Jani and give him a sedative please.
This makes our toolchain work with the latest versions
of autoconf and avoids a lot of end-user grief.
2009-11-25 01:30:06 +00:00
Ilia Alshanetsky
755318926e Fixed bug #50240 (pdo_mysql.default_socket in php.ini shouldn't used if it is empty). 2009-11-23 15:45:04 +00:00
Felipe Pena
4bafbf58f8 - Fixed bug #49521 (PDO fetchObject sets values before calling constructor)
(patch by Pierrick)
2009-11-15 16:20:37 +00:00
Ulf Wendel
973d7badd5 Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
Ilia Alshanetsky
1e50b1892a Fixed bug #50023 (pdo_mysql doesn't use PHP_MYSQL_UNIX_SOCK_ADDR)
# Original patch by six at aegis-corp dot org
2009-10-29 13:33:51 +00:00
Ulf Wendel
58f7c5f578 Updating test - no error message any more. Maybe the PDO core has changed... whatever, one issue less 2009-10-26 11:48:47 +00:00
Ulf Wendel
ee36281037 Updating test, mysqlnd support init commands 2009-10-26 11:41:30 +00:00
Ulf Wendel
381ebe751b mysqlnd supports INIT_COMMAND and so we can add it to PDO_MYSQL @ mysqlnd 2009-09-22 15:31:35 +00:00
Antony Dovgal
193bbbbd59 fix build broken by the fix for bug #49306 2009-08-21 07:46:43 +00:00
Ilia Alshanetsky
019f4f2c22 Fixed bug #49306 (inside pdo_mysql default socket settings are ignored). 2009-08-20 12:13:38 +00:00
Jani Taskinen
5ae549c8fd - Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)). 2009-08-17 17:57:40 +00:00
Gwynne Raskind
9adf2ed4aa call-time pass-by-reference is deprecated in 5.3 2009-07-02 10:05:15 +00:00
Kalle Sommer Nielsen
f02ebe4a08 MFH: Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysql 2009-05-20 08:30:12 +00:00
Felipe Pena
a3e90c2a63 - Fix test 2009-03-24 15:51:13 +00:00
Felipe Pena
861d51223f MFH:
- Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct())
  Patch by: matteo at beccati dot com
2009-03-23 23:15:03 +00:00
Ilia Alshanetsky
a6263465cf Removed unused variable 2009-01-14 19:16:24 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Ilia Alshanetsky
bead44c487 MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL). 2008-12-30 19:11:13 +00:00
David Coallier
55ad0efd17 - Make test conform to the error reporting that always returns
three elements. Adjusted all bugs and tests that were using
  errorInfo() and errorCode() (dbh & stmt)
2008-11-10 18:44:04 +00:00
David Coallier
d781f9d67f - Hrphm, sorry about that, forgot the array value. Now the test runs fine 2008-11-10 12:49:51 +00:00
David Coallier
d2c1047241 - Adjusted test to make sure it reflects the behavior of the method 2008-11-10 12:40:23 +00:00
Johannes Schlüter
ef3ce03e5e MFH: Don't enable mysqlnd when pdo_mysql is being built with libmysql 2008-11-06 11:12:21 +00:00
Felipe Pena
e0fededeba - MFH: Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash) 2008-11-03 15:33:23 +00:00
Johannes Schlüter
40e42663f5 MFH: Fix #44135 (PDO MySQL does not support CLIENT_FOUND_ROWS) 2008-10-27 18:32:08 +00:00
Felipe Pena
02fee77584 - Fixed test 2008-10-19 18:23:53 +00:00