Commit Graph

147 Commits

Author SHA1 Message Date
Antony Dovgal
484698f6fe fix leak in php_local_infile_init() handler 2006-07-27 10:53:03 +00:00
Michael Wallner
3c0a4a8b07 - revert messed up patch 2006-07-10 13:16:07 +00:00
Michael Wallner
9539a8b980 - fix 5.2 build 2006-07-10 13:08:11 +00:00
Antony Dovgal
70a7d0319b fix mysqli_*_free_storage() funcs to conform with their prototypes 2006-07-10 13:02:31 +00:00
Dmitry Stogov
0644e2e386 Another fix for #38019 2006-07-10 12:46:46 +00:00
Dmitry Stogov
1236514b0b Fixed bug #38019 (segfault extending mysqli class) 2006-07-10 10:05:35 +00:00
Antony Dovgal
6345105612 fix bug #38003(in classes inherited from mysqli it's possible to call private constructors from invalid context)
also, use appropriate macro instead of accessing structure elements directly
2006-07-05 11:48:17 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Michael Wallner
5777060367 MFB: Fixed bug #36949 (invalid internal mysqli objects dtor) 2006-05-29 16:55:40 +00:00
Andrey Hristov
e4e7d27e4a MFB 2006-05-10 12:29:09 +00:00
Georg Richter
b6d7fdf465 Merge from 5.2 2006-05-09 11:27:20 +00:00
Antony Dovgal
cb2232e808 MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace) 2006-03-30 11:23:11 +00:00
Antony Dovgal
87f6b66a62 fix typo 2006-03-29 16:30:54 +00:00
Antony Dovgal
6a53a49c8b MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
Pierre Joye
bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Marcus Boerger
20273c4fe9 - Fix build 2006-03-05 17:31:44 +00:00
Johannes Schlüter
50e52dcc3e - Fix build after unicode changes 2006-03-05 15:49:55 +00:00
Ilia Alshanetsky
c20dbeb121 MFB51: Remove no longer needed check (checked at a higher level now). 2006-03-01 18:37:25 +00:00
Ilia Alshanetsky
2b24ddb6a3 MFB51: Fixed bug #36420 (segfault when access result->num_rows after calling
result->close())
2006-02-16 16:05:02 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Dmitry Stogov
8bb39e7dba Allow recursive calls to __get/__set for different properties 2005-11-15 15:21:47 +00:00
Antony Dovgal
dd14ae2327 MF51: fix TS build 2005-10-12 13:33:33 +00:00
Antony Dovgal
870a19056f MF51: fix #34818 2005-10-10 20:14:31 +00:00
Antony Dovgal
d94f338cf4 fix #34450 (Segfault when calling mysqli_close() in destructor) 2005-09-13 09:19:58 +00:00
Sebastian Bergmann
52b001cc05 ZTS fixes. 2005-08-12 14:08:28 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Antony Dovgal
b16beb540c fix #33491 (crash after extending MySQLi internal class) 2005-06-27 17:40:37 +00:00
Georg Richter
6fba73e8e2 changed/fixed mysqli_warning class
added prefetch support for cursors
2005-06-22 09:12:43 +00:00
Andrey Hristov
b4464a2d6a mysqli won't compile with Zend2 API before 2001 - in these days there was
no Zend2
2005-05-09 22:29:21 +00:00
Georg Richter
929e3851f2 fixed memleak in mysqli_close
fixed bug #32956 (mysqli_bind_result doesn't support MYSQL_TYPE_NULL)
2005-05-05 13:02:32 +00:00
Andrey Hristov
e640960186 multi_query is no more global
#thanks Sebastian!
2005-04-29 10:23:55 +00:00
Georg Richter
9c1960c398 fixed typo in last commit :( 2005-04-20 13:03:01 +00:00
Georg Richter
649a8b18ef added support for data truncation (bind_result) for MySQL 5.0.5 2005-04-20 12:50:13 +00:00
Georg Richter
21cae3966c cursor support for 5.0.4 (STMT_ATTR_CURSOR_TYPE changed to enum) 2005-04-18 06:03:29 +00:00
Georg Richter
f6ecb58448 fix for bug #32282 (segfault in mysqli_fetch_array on 64-bit) 2005-04-06 06:47:12 +00:00
Marcus Boerger
5830e46a84 - Bugfix #28840 __destruct of a class that extends mysqli not called 2005-03-06 21:40:01 +00:00
Antony Dovgal
6ffd569410 MFB: fix leak in mysqli_fetch_array() 2005-01-27 14:41:48 +00:00
Marcus Boerger
8045f834d4 - Remove double destroy (which is definitively wrong and prevents php from
normal execution).
2005-01-08 13:34:03 +00:00
Georg Richter
f16db40af2 forgot to remove some comments in last commit:( 2005-01-07 16:34:55 +00:00
Georg Richter
0b4c108bd7 Added new classes:
mysqli_driver
	mysqli_warning
	mysqli_exception
	mysqli_sql_exception

Improved embedded server support
changed testsuite to work also with embedded server

Made statement and resultset classes extendable

minor fixes
2005-01-07 14:59:59 +00:00
Georg Richter
683f6c879c added constructors for mysqli_stmt and mysqli_result classes 2004-12-26 13:16:40 +00:00
Georg Richter
ea22bf6063 fix for bug 31141 2004-12-25 16:42:53 +00:00
Antony Dovgal
01f31dcccb fix buffer overrun and remove debug printf() call 2004-12-09 08:22:06 +00:00
Georg Richter
9751d9afaa Fixed bug #30890 (testsuite)
Fixed bug #28817 (property problems in extended class)
2004-12-04 08:16:04 +00:00
Georg Richter
30dd61abb7 Fixed bug #30967 (properties in extended mysqli classes don't work) 2004-12-03 07:56:19 +00:00
Georg Richter
c8572b0bba changed local_infile_handler:
mysql client lib now uses php_local_infile functions by default, which allows
  to use php_fopen_wrapper: e.g. LOAD DATA LOCAL INFILE 'http://foo.com/bar.csv' ...

  mysql_set_local_infile_handler now only supports a callback function for read.
2004-08-25 13:57:35 +00:00
Georg Richter
1c6f49006b fixed default for mysqli_fetch_array 2004-08-15 05:48:16 +00:00
Georg Richter
1593aa0e5e fixed bug #29656 (segfault on result and statement properties) 2004-08-13 16:25:29 +00:00
Georg Richter
2454194424 fixed bug #29577 (MYSQLI_CLIENT_FOUND_ROWS undefined) 2004-08-09 04:34:01 +00:00
Georg Richter
40defd5f2c forgot to remove debug variable :( (Thx to Derick) 2004-08-04 13:15:48 +00:00
Georg Richter
5caeacc9c3 fixed properties when connect wasn't called 2004-08-04 12:59:09 +00:00
Georg Richter
161b37ffbc fixed bug #29522 2004-08-04 12:28:09 +00:00
Georg Richter
485f862b35 fixed bug #29335 2004-07-26 07:19:05 +00:00
Georg Richter
8c6ab178e4 fixed bug #29311
added support for Cursors (MySQL 5.0.x)
2004-07-23 12:47:36 +00:00
Georg Richter
9db1075c0e added check in config.m4 for deprecated library
added support for new 4.1.3-beta functions
	mysqli_stmt_field_count
	mysqli_stmt_attr_set
	mysqli_stmt_attr_get
removed support for deprecated/old api functions
fixed bug in constructor_get
2004-07-07 08:02:27 +00:00
Marcus Boerger
c884ad017c - Bugfix: #29019 Database not closing 2004-07-05 19:36:10 +00:00
Georg Richter
f063bdec06 added php_mysqli_construct_get to support __construct in extended classes 2004-06-23 16:47:25 +00:00
Sebastian Bergmann
14deb9dd04 ZTS fixes. 2004-06-06 06:40:19 +00:00
Georg Richter
93bf6517df Major changes for 4.1.2-alpha/4.1.3-beta:
- added container for mysql structure
- added load data infile callback functions (currently disabled under win)
Bug fixes:
- fixed property changes (4.1.1 -> 4.1.2)
- fixed memleak in mysqli_connect
- fixed bug #28100
- fixed bug #28205
- fixed bug #28430
2004-06-05 18:31:56 +00:00
Andi Gutmans
14edc95ff8 - Temporary fix for bug #27869
- George, you need to implement clone in order for "clone" and
- compatibility mode to work.
2004-04-15 17:25:51 +00:00
Stanislav Malyshev
5b0f6b1f34 Update for new read_property API 2004-03-21 18:28:38 +00:00
Georg Richter
848f123645 removed if type=string: val is allocated for any type of data 2004-03-18 13:03:17 +00:00
Georg Richter
e3077eadef fixed stmt->stmt->query which was removed in libmysql 4.1.2
added query buffer in internal stmt structure to copy string
after prepare
2004-03-16 21:43:25 +00:00
Marcus Boerger
59804de32e Missing buffer->val change 2004-03-09 14:29:20 +00:00
Georg Richter
8e52a1a8a3 added MySQLI ini entries
added ini parameter for mysql->reconnect
2004-02-26 11:40:35 +00:00
Zeev Suraski
7c710a9f9b Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.
Note:  You should not be using ZVAL_DELREF() in day to day usage.  Instead,
       you should use zval_ptr_dtor().  Use ZVAL_DELREF() only if you're
       messing with the refcount directly and know what you're doing.
Note #2:  For clarity, if you want to initialize a new zval with a refcount
          of 0, it's best to do that directly, instead of using ZVAL_DELREF
          after allocating the zval...
2004-02-15 12:58:19 +00:00
Zeev Suraski
30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
Georg Richter
9e93ac6005 removed printfs :)
Thx Andi!
2004-02-11 08:34:08 +00:00
Georg Richter
c0a1ec4210 changed first parameter in mysqli_bind_param from array to string
(as discussed on berlin db meeting)
2004-02-11 07:38:43 +00:00
Georg Richter
e3d0e587b8 fixed cast warning 2004-02-07 13:45:44 +00:00
Zeev Suraski
8424be849f - Update with new destructor code 2004-02-04 11:14:47 +00:00
Georg Richter
7782a4b425 removed experimental status
fixed bug in mysqli_data_seek (thx to Andrey "Effendi" Hristov)
various prototype fixes
moved some methods to properties which are part of mysql struct
added function mysqli_get_server_version
2004-01-28 22:51:54 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
b658a26874 emalloc() -> safe_emalloc() 2003-12-31 19:45:46 +00:00
Georg Richter
c10072d067 fixed memleak and segfault when constructor call failed 2003-12-31 08:34:02 +00:00
Georg Richter
8b3b1c192b removed profiler
added mysqli_report
	- better support for errors
	- support for no_index_used and bad_index_used
typos and prototype fixes
2003-12-13 00:28:21 +00:00
Georg Richter
1be7176c7b freeing result and stmt properties in MSHUTDOWN 2003-12-10 10:06:07 +00:00
Georg Richter
e664af1943 added/fixed write property 2003-11-24 11:31:26 +00:00
Georg Richter
230b207849 - Added multiquery support:
mysqli_multi_query
	mysqli_more_results
	mysqli_next_results

- added read-only properties (and removed methods)
	object mysql
		affected_rows
		client_flags
		client_version
		errno, error,
		host, host_info, info
		server_capabilities, server_version
		sqlstate, port, protocol_version,
		server_language
		thread_id, user, warning_count

	object result
		current_field, field_count,
		lengths, num_rows, type

	object stmt
		query, param_count, field_count,
		id, errno, error, sqlstate


- added constructor

- minor fixes, prototypes
2003-11-22 21:20:07 +00:00
Ilia Alshanetsky
d9bf51b17c 10-18% optimization of fetch_array(), when both number & string indexes are
created.

# Do we want to MFH the change (for ext/mysql) into 4.3.X?
2003-11-07 17:20:49 +00:00
Zak Greant
8802c3ad8c Ensure that INI entries are unregistered on shutdown 2003-10-30 13:32:18 +00:00
Marcus Boerger
1ae13e543a Modify mysqli_fetch_object() to be able to instantiate a selected class and
pass parameters to the constructor.
2003-09-06 19:34:48 +00:00
Georg Richter
b6bed54bbd added support for rebind 2003-07-15 10:37:19 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Georg Richter
445180f228 MYSQL_NEED_DATA isn't defined anymore in mysql.h 2003-05-21 08:47:27 +00:00
Marcus Boerger
f83c88e81d Add missing initialization 2003-03-21 18:08:59 +00:00
Georg Richter
7cf921a56f profiler:
moved profiler stuff from php_mysql.h to separate include file
added port communication
added xml support for file and port output
2003-03-11 01:19:21 +00:00
Georg Richter
15f648c8f9 various changes for profiler 2003-03-08 23:33:12 +00:00
foobar
3c9155e0cb Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
Georg Richter
281960ee78 added profiler support 2003-03-03 22:36:47 +00:00
Georg Richter
b63fbf2763 Fixed bug with stmt_close (libmysql bk version 1.1477 required)
Fixed bug with mysql_execute and float values
2003-02-22 07:31:01 +00:00
Georg Richter
2f604f67e8 removed duplicate code 2003-02-18 00:32:47 +00:00
Georg Richter
bc5eb4b3b4 fixed some leaks when mysql_close will be called before all stmts are freed. 2003-02-18 00:00:51 +00:00
Ilia Alshanetsky
43eda85d5a Fixed compile warnings. 2003-02-14 20:14:44 +00:00
Ilia Alshanetsky
031dd997fb Missing portion of the previous patch. 2003-02-14 16:49:09 +00:00
Georg Richter
1a7a41cf9f fixed a bug in prepare/bind 2003-02-14 16:31:22 +00:00
Georg Richter
7d7c07a77c initial upload 2003-02-12 00:45:53 +00:00