Commit Graph

410 Commits

Author SHA1 Message Date
Andi Gutmans
56f8195fe5 - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
  STR_FREE() and zval_dtor() always have to check for it and it slows down
  the general case. In addition, it seems that empty_string has been abused
  quite a lot, and was used not only for setting zval's but generally in
  PHP code instead of "", which wasn't the intention. Last but not least,
  nuking empty_string should improve stability as I doubt every place
  correctly checked if they are not mistakenly erealloc()'ing it or
  calling efree() on it.
  NOTE: Some code is probably broken. Each extension maintainer should
  check and see that my changes are OK. Also, I haven't had time to touch
  PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Ilia Alshanetsky
ca5c6a1e91 Fixed bug #28374 (Possible unterminated loop inside
_php_pgsql_trim_message()).
2004-05-12 16:49:47 +00:00
Ilia Alshanetsky
8694cd135d Fixed possible crash inside pg_copy_(to|from) function if delimiter is more
then 1 character long.
2004-04-22 00:31:55 +00:00
Ilia Alshanetsky
5442d722c3 Fixed bug #27300 (Improved regex for pg_convert()).
# Patch by benjcarson at digitaljunkies dot ca
2004-03-18 01:34:58 +00:00
Marcus Boerger
b83663e0f2 Keep BC of pg_fetch_object 2004-03-15 20:16:59 +00:00
Marcus Boerger
0ace9f4885 Bugfix #27597 pg_fetch_array not returning false . 2004-03-15 19:47:18 +00:00
Marcus Boerger
1651be020a Show the connect result 2004-03-09 14:37:49 +00:00
Ard Biesheuvel
81f05c18f5 Wordsize fixes 2004-02-25 20:16:27 +00:00
Zeev Suraski
30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
Ilia Alshanetsky
194509f093 Fixed bug #27007 (missing connection closure when connect fails in pgsql). 2004-01-29 02:54:30 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Ilia Alshanetsky
3b7da77480 Fixed bug #26864 (pg_(update|delete) ignore PGSQL_DML_EXEC option). 2004-01-11 21:18:19 +00:00
Marcus Boerger
b460ae868e Use pg_config if it can be found. 2004-01-09 18:44:33 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
fae56fca30 Removed a useless define. 2003-12-29 15:58:01 +00:00
Ilia Alshanetsky
20d64aa24e Make test work with PostgreSQL 7.4 2003-12-23 17:33:06 +00:00
Ilia Alshanetsky
57b7eb9dc3 Missing bit for bug #26625. 2003-12-22 15:56:51 +00:00
Ilia Alshanetsky
82ec523a75 Fixed Bug #26625 (pg_convert sets NULL incorrectly for character data
types).
2003-12-16 01:00:34 +00:00
Edin Kadribasic
c7ad4d1e4d MFB: Use standard header locations 2003-12-11 11:19:15 +00:00
Ilia Alshanetsky
669b421c11 Removed unused variable. 2003-12-07 18:39:09 +00:00
Marcus Boerger
4b9a4509c4 MFB: PHP_PQ_ERROR() change 2003-12-06 21:36:21 +00:00
Marcus Boerger
37bcfda978 #args, reinsert skipif for extension check 2003-12-06 20:41:07 +00:00
Marcus Boerger
4a66bd9394 Do not dynamically load the extension in skipif 2003-12-06 20:35:41 +00:00
Edin Kadribasic
32eb4f78c2 Get rid of PHPAPI usage.
Enable shared build in the new php5 build system
Check for the correct header.
2003-12-05 01:03:35 +00:00
Wez Furlong
9555db802d Make this build using new build system 2003-12-04 15:32:31 +00:00
Marcus Boerger
f6239c33bc Modify pg_fetch_object() to be able to instantiate a selected class and pass
parameters to the constructor. Update tests and add a test for these features.
2003-09-06 18:34:55 +00:00
Marcus Boerger
5d1dbdbfd2 Bugfix #25404 2003-09-06 15:30:28 +00:00
Marcus Boerger
d2f39fc11e format string fix and number of arguments 2003-08-28 23:04:27 +00:00
Andrey Hristov
189e2d8862 this is the right parameter 2003-08-28 21:06:44 +00:00
Andrey Hristov
b2eb454171 format string fixes 2003-08-28 21:00:24 +00:00
Ilia Alshanetsky
bf82857475 Fixed bug #25109 (Possible crash when fetching field name) 2003-08-28 00:31:36 +00:00
Ilia Alshanetsky
e5879a5060 Fixed tests that failed in ZTS due to incorrect file paths.
Fixed test that failed due to new array dimension property being fetched.
2003-08-28 00:29:44 +00:00
Ilia Alshanetsky
249e8d5fa8 Fixed bug #22243 (make pg_meta_data fetch array dimentions)
m-lesser[at]better-com.de
2003-08-27 00:04:19 +00:00
Ilia Alshanetsky
38a98c55f7 Fixed bug #25093 (Various leaks due to non-freed queries) 2003-08-14 17:49:08 +00:00
Marcus Boerger
b156ac9703 #damn 2003-07-27 17:44:20 +00:00
Marcus Boerger
dbc6519b1a In protocol version < 3 we cannot test transaction status and do unconditional ROLLBACK; 2003-07-27 17:05:56 +00:00
Marcus Boerger
f5f60e6fea Added new function pg_parameter_status() 2003-07-27 16:47:36 +00:00
Marcus Boerger
ab36d72c16 Needed function detection 2003-07-27 16:46:40 +00:00
Marcus Boerger
e5d492a3df New smart connect/shutdown for persistent connections.
Behavior for old libs/servers is "BEGIN;ROLLBACK;" in request shutdown.
For new libs a "RESET ALL;" is done in connect and "ROLLBACK;" is only done
where appropriate.
2003-07-27 16:45:10 +00:00
Marcus Boerger
7a85edd370 Added pg_version() which returns an associative array of client/protocol/server
version.
@Added pg_version() function. (Marcus)
2003-07-22 23:05:17 +00:00
Marcus Boerger
ec9ae45e2f Add reson 2003-07-22 23:01:24 +00:00
Marcus Boerger
bc90ce7818 The value might be a null pointer 2003-07-22 22:05:46 +00:00
Marcus Boerger
dd781dcdc9 Postgres decision on this 2003-07-22 21:12:32 +00:00
Marcus Boerger
6175f0a4c9 Reset vars when reusing a persistent connection as requested from postgres developers 2003-07-21 20:53:00 +00:00
Marcus Boerger
c89ade3b66 Go without #24499 hint sneaked in by accident 2003-07-21 20:49:47 +00:00
Marcus Boerger
db86597e88 Add test for bug #24499 2003-07-20 20:27:43 +00:00
Marcus Boerger
c766e9a503 Use only one line per error message and don't terminate with a dot as everywhere else. 2003-07-20 16:00:40 +00:00
Andrey Hristov
5fcc682ebc proto fixes 2003-07-19 19:23:34 +00:00
Marcus Boerger
f970724d79 Do not test postgres settings 2003-06-30 18:00:30 +00:00