Commit Graph

225 Commits

Author SHA1 Message Date
Anatol Belski
d7fd614cc6 fix leaks and add one more NULL check 2016-02-29 15:38:42 +01:00
Anatol Belski
a310c3b484 add NULL check 2016-02-29 15:26:57 +01:00
Anatol Belski
efaafd45b4 fix C89 compat 2016-02-29 15:24:31 +01:00
Anatol Belski
35be4398d1 fix arg type 2016-02-29 15:23:53 +01:00
Adam Baratz
b0793d6d8f Add missing fields to expected test output 2016-02-03 16:50:29 -05:00
Nikita Popov
93dc91b386 Remove version checks
PHP_VERSION_ID
PHP_API_VERSION
ZEND_MODULE_API_NO
PHP_MAJOR_VERSION, PHP_MINOR_VERSION
ZEND_ENGINE_2

I've left litespeed alone, as it seems to genuinely maintain support
for many PHP versions.
2016-01-30 15:35:28 +01: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
Anatol Belski
af8937c056 Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  C89 compat
  use spprintf instead (no need to estrdup afterwards).
  dblib's dbcolname can return null in some cases
  testcase fot bug #69757
  Segmentation fault on pdo_dblib::nextRowset (bug #69757)

Conflicts:
	ext/pdo_dblib/dblib_stmt.c
2015-10-18 11:28:57 +02:00
Anatol Belski
7f33ab834d C89 compat 2015-10-18 11:14:30 +02:00
MiRacLe.RPZ
2b5af600e3 use spprintf instead (no need to estrdup afterwards). 2015-10-18 11:10:50 +02:00
MiRacLe.RPZ
5c19355095 dblib's dbcolname can return null in some cases 2015-10-18 11:10:45 +02:00
MiRacLe.RPZ
4c8f064d7d testcase fot bug #69757 2015-10-18 11:10:39 +02:00
MiRacLe.RPZ
acb2368976 Segmentation fault on pdo_dblib::nextRowset (bug #69757) 2015-10-18 11:10:34 +02:00
Dmitry Stogov
70c86732cb Use zend_string to represent pdo_column_data.name and avoid duplication. 2015-05-05 16:19:51 +03:00
Anatol Belski
19360f386e cleanup mod version macros, round 3 2015-03-23 20:54:55 +01:00
Maxime BESSON
f384971552 Look for PDO include files in the right folder
Configure scripts for extensions look for PDO include files in
$prefix/include/php. This change makes them look into $phpincludedir
instead, which may be different from $prefix/include/php.
2015-02-06 12:06:29 +01:00
Stanislav Malyshev
dfe6aea9ca size_t cleanup for PDO 2015-01-26 16:16:02 -08:00
Xinchen Hui
fc33f52d8c bump year 2015-01-15 23:27:30 +08:00
Xinchen Hui
0579e8278d bump year 2015-01-15 23:26:37 +08:00
Stanislav Malyshev
b7a7b1a624 trailing whitespace removal 2015-01-10 15:07:38 -08:00
Anatol Belski
bdeb220f48 first shot remove TSRMLS_* things 2014-12-13 23:06:14 +01:00
STANLEY SUFFICOOL
f35e6a8394 Update PDO_DBLIB README file 2014-10-24 20:30:18 -07:00
STANLEY SUFFICOOL
a1a18fca6e Fixed Bug #52885 - PDO_DBLIB: Binary data may be truncated
Data containing characters in conflict with the server
codepage or containing null char will throw an error.
Implement binary quoting to allow binding of binary values.
2014-10-24 20:10:04 -07:00
STANLEY SUFFICOOL
560649283c Implement Bug #66062 - pdo_dblib enable timeout parameter 2014-10-22 23:17:28 -07:00
Stanley Sufficool
83144a7281 Fixed bug #64511 - pdo_dblib segfaults or leaks on nextRowset() 2014-10-22 20:13:22 -07:00
Stanley Sufficool
09cf64678a Fix bug #67134 (PDO_DBLIB Missing null string terminator) 2014-10-20 21:44:47 -07:00
Johannes Schlüter
d0cb715373 s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
Anatol Belski
c3e3c98ec6 master renames phase 1 2014-08-25 19:24:55 +02:00
Anatol Belski
4ed156d4df ported from pdo - pgsql, odbc, mysql, firebirt, dblib 2014-08-19 19:02:07 +02:00
Anatol Belski
63d3f0b844 basic macro replacements, all at once 2014-08-19 08:07:31 +02:00
Dmitry Stogov
050d7e38ad Cleanup (1-st round) 2014-04-15 15:40:40 +04:00
Xinchen Hui
c081ce628f Bump year 2014-01-03 11:08:10 +08:00
Stanley Sufficool
9c7dbb0487 Fix bug #64338 pdo_dblib can't connect to Azure SQL 2013-10-05 18:26:25 -07:00
Derick Rethans
9ef4e5d23d Merge branch 'PHP-5.5' 2013-09-27 10:14:51 +01:00
Stanley Sufficool
ac05cfb499 FIX BUG #48539 - Disable TEXTLIMIT for FreeTDS driver 2013-09-26 19:53:47 -07:00
Stanislav Malyshev
f20d28a6b1 Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, DBQUOTEDIDENT, 1))
The exists test should has covered this bug

Conflicts:

	ext/pdo_dblib/dblib_driver.c
2013-08-04 19:19:37 -07:00
Stanley Sufficool
d012bdca03 Fix Bug #65219
DBSETLDBNAME should be called before login to set DBNAME in login record
2013-07-14 11:16:42 -07:00
Felipe Pena
7549beb102 - Fixed build on FreeTDS 0.82 2013-07-03 15:02:03 -03:00
Stanley Sufficool
5a04ab9a54 Fix PDO_DBLIB bugs: #64338, #64808, #63638
Synchronize with master
2013-06-03 20:02:08 -07:00
Xinchen Hui
0a7395e009 Happy New Year 2013-01-01 16:28:54 +08:00
Xinchen Hui
0c0b5a3543 Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, DBQUOTEDIDENT, 1))
The exists test should has covered this bug
2012-10-12 10:37:05 +08:00
Felipe Pena
4e19825281 - Year++ 2012-01-01 13:15:04 +00:00
Felipe Pena
d080277d97 - Fixed bug #60033 (Incorrectly merged PDO dblib patches break uniqueidentifier column type) 2011-10-12 01:24:51 +00:00
Felipe Pena
707a8f70b8 - Added ZEND_MOD_END macro to use in the end of zend_module_dep[] 2011-08-06 14:47:44 +00:00
Felipe Pena
4b30846b50 - Make usage of new PHP_FE_END macro 2011-07-25 11:35:02 +00:00
Rasmus Lerdorf
8e256774b0 Cache the PDO include path 2011-05-15 05:24:34 +00:00
Felipe Pena
6ba343aeff - Fixed bug #54167 (PDO_DBLIB returns null on SQLUNIQUE field)
# initial patch by: mjh at hodginsmedia dot com (5.3)
# trunk version by me
2011-03-05 23:07:45 +00:00
Felipe Pena
0203cc3d44 - Year++ 2011-01-01 02:17:06 +00:00
Stanley Sufficool
013725218a Remove non C90 quotes 2010-09-29 00:55:43 +00:00
Stanley Sufficool
dc0736b3ed Update getColumnMeta native types for SQL Server 2008 2010-09-26 20:16:25 +00:00
Stanley Sufficool
e00060b3b0 Remove obsolete non phpt test script. 2010-07-24 14:05:44 +00:00
Stanley Sufficool
df60c5063c pdo_dblib - improve test skip messages 2010-06-30 03:16:04 +00:00
Stanley Sufficool
930090b46b PDO DBLIB test fixups 2010-06-29 14:08:22 +00:00
Stanley Sufficool
ff35c963a4 Remove PDO DBLIB prefix from PostgreSQL PDO tests 2010-06-29 06:20:15 +00:00
Stanley Sufficool
4ebac5019b Oops 2010-06-29 06:08:51 +00:00
Stanley Sufficool
a31e27db27 Add tests for recent fixes 2010-06-29 06:04:17 +00:00
Stanley Sufficool
3e12c6174d Fix bad string length 2010-06-28 00:15:18 +00:00
Stanley Sufficool
36b8c4cb35 Actually fix quoted identifiers this time 2010-06-24 03:40:45 +00:00
Stanley Sufficool
1b2ec793f9 Fix Bug #47588 - Allow Quoted Identifiers 2010-06-23 01:29:01 +00:00
Stanley Sufficool
f8bf423bd5 Fix bug #52137 - implement lastInsertId 2010-06-22 02:59:52 +00:00
Stanley Sufficool
c8b7f939e6 Fix bug #52134 2010-06-22 02:09:57 +00:00
Stanley Sufficool
7ea7787000 Fix bug #38955 - add transaction support 2010-06-21 07:30:48 +00:00
Stanley Sufficool
5712b1ec9f Fix bug #45876 adding get column meta 2010-06-21 06:54:10 +00:00
Felipe Pena
2b2802738c - Fixed build and next_rowset prototype 2010-06-02 12:20:38 +00:00
Stanley Sufficool
3a069e814f Fix bug #50755 & Enable multiple rowsets [DOC] 2010-05-31 18:38:22 +00:00
Ilia Alshanetsky
48adfafab8 Fixed bug #51213 (pdo_mssql is trimming value of the money column). 2010-03-08 12:39:44 +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
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
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
Felipe Pena
8c74835795 - Possible fix for bug #49344 on Windows (pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0)) 2009-09-10 01:20:42 +00:00
Johannes Schlüter
dec83ec4d2 MFH: Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException
"SQLSTATE[] (null)")  (Felipe)
2009-06-29 09:36:03 +00:00
Kalle Sommer Nielsen
061f229abc MFH: Fixed shared build 2009-05-20 10:18:51 +00:00
Kalle Sommer Nielsen
a58bd002d6 MFH: Fix --with-pdo-mssql build and add some warnings if header/libs are not found 2009-05-19 10:22:25 +00:00
Steph Fox
f5a65cabfd MFH
- Fix bug #38805 ( PDO Truncates Text from SQL Server Text Data Type Field)
- Bring behaviour into line with ext/mssql
- Several memleaks plugged
2009-03-19 22:16:29 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Felipe Pena
892fb867c8 - MFH: Fixed bug #44991 (Compile Failure With freetds0.82) (patch by matthias at dsx dot at) 2008-10-04 12:52:58 +00:00
Jani Taskinen
281352fe02 MFH: Fix PDO configure dependancy: If --disable-pdo is used, disable all
MFH: enabled-by-default drivers. Also error out if you try to configure
MFH: a driver as static but pdo is disabled.
2008-07-25 13:46:24 +00:00
Nuno Lopes
61eb7ae554 remove unused PHP_EXTNAME_API macros.
#in preparation for the gcc 4 visibility patch
2008-01-03 16:20:33 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
foobar
7ed3c4536d MFH: Fix some configure --help texts 2007-07-03 17:25:43 +00:00
Frank M. Kromann
c2cfc1eeee Fix mysql -> dblib 2007-01-15 01:56:09 +00:00
Ilia Alshanetsky
c5588fae3a Fixed bug #40121 (PDO_DBLIB driver wont free statements). 2007-01-14 16:57:50 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
7efb0a14f4 Use safe_emalloc() 2006-12-25 21:41:04 +00:00
foobar
1a8d655fec fix build and typo after another lazy ass who does not test before commit: Dmitry 2006-07-24 00:01:02 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +00:00
Edin Kadribasic
bbf97549b8 Remove pecl includes (Steph), except pdo_odbc which will remain broke 2006-05-11 21:43:59 +00:00
Wez Furlong
30f98ae77b set min pdo dep to 1.0.3, which will be the new pecl release 2006-05-02 02:43:11 +00:00
foobar
220490222a - Fix date 2006-01-01 12:47:32 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
Wez Furlong
17683295e4 switch to package2.xml 2005-12-04 22:34:26 +00:00
Wez Furlong
85ad81736c set to 1.0 stable. 2005-11-26 20:50:08 +00:00
foobar
366832fbd2 MFH: Fixed wrong usage of ZEND_EXTENSION_API_NO (these are not Zend exts :) 2005-11-25 16:01:41 +00:00
Wez Furlong
3d9af317e6 update ready for release spree today 2005-11-01 13:14:10 +00:00
Wez Furlong
6f63c45639 Fix #35032; pdo_dblib doesn't find includes on some systems 2005-11-01 13:12:52 +00:00
Wez Furlong
598f182c29 prep for PECL release 2005-11-01 02:46:12 +00:00
Ilia Alshanetsky
49678f0908 MFH: Fixed bug #34758 (PDO_DBLIB did not implement rowCount()). 2005-10-12 15:03:03 +00:00
Ilia Alshanetsky
412a28d124 MFH: Fixed bug #34777 (Crash in dblib when fetching non-existent error info). 2005-10-09 19:00:34 +00:00
foobar
1536082186 fix typo 2005-09-24 23:23:25 +00:00
Wez Furlong
77d3a41f8a update package.xml files and version numbers, in anticipation of a big bunch of releases. 2005-09-11 05:27:30 +00:00
SVN Migration
4571221d8e This commit was manufactured by cvs2svn to create branch 'PHP_5_1'. 2005-08-08 23:59:05 +00:00
Wez Furlong
b87c4b6abe typo 2005-07-27 04:20:50 +00:00
Wez Furlong
73d7fb493c Add package.xml 2005-07-27 03:13:05 +00:00
Wez Furlong
f7c0b7d09e prep for PECL release 2005-07-27 03:12:43 +00:00
Wez Furlong
ec50ec65b9 use pdo core test suite.
Now passes all but one test.  Volunteers that want to track down the cause
for test pdo_018.phpt not passing are welcome.
2005-07-20 05:27:27 +00:00
Wez Furlong
3e5ddd2a80 compile before commit... 2005-07-12 12:21:53 +00:00
Wez Furlong
04dd0e1094 Enable unix build for dblib/sybase/freetds.
The extension is named pdo_dblib and the driver dblib on unix.
2005-07-12 12:16:02 +00:00
Wez Furlong
93962139fb Avoid estrdup(NULL), modified patch from Zhao ming sen. 2005-07-12 11:02:23 +00:00
Wez Furlong
a5135f4528 Patch from zhao ming sen. 2005-06-10 06:32:36 +00:00
Wez Furlong
7215b2b8fb use a number here, fixes PECL #3493 2005-02-16 18:09:26 +00:00
Wez Furlong
06cf185298 fix pdo_mssql.dll build 2005-02-13 23:13:14 +00:00
Wez Furlong
4dc3b75569 possible fix for snaps box 2005-02-13 01:32:27 +00:00
Wez Furlong
d87c5ec288 update for api changes 2005-02-06 22:34:53 +00:00
Wez Furlong
26f97a911b Eliminate unused parameter.
Don't start a transaction when asking for a cursor with pgsql.
Fix parameter binding for sqlite3
2005-01-21 00:39:03 +00:00
Wez Furlong
08fa032b80 fix backslash 2005-01-21 00:04:50 +00:00
Wez Furlong
e21e1c65e3 Juggle/enhance mssql library detection 2005-01-20 05:09:06 +00:00
Wez Furlong
9fe37737f9 generate dblib and mssql variants in the same build 2005-01-20 03:29:53 +00:00
Frank M. Kromann
25917d5885 Make this compile with the generic ntwdblib from Microsoft 2005-01-18 07:17:01 +00:00
Wez Furlong
a9d98544de Allow drivers to select bind emulation on a per statement basis 2005-01-18 04:58:50 +00:00
Wez Furlong
d911f19862 doh 2005-01-18 04:35:47 +00:00
Wez Furlong
505fbb1966 nice and fluffy error handling 2005-01-18 02:42:52 +00:00
Wez Furlong
ca98805935 Add a PDO driver for Sybase style DB-lib (including MS SQL).
Only the basics are here right now.
2005-01-17 01:15:14 +00:00