Georg Richter
15563f8d91
fix for bug #33263 (mysqli_real_escape doesn't work in __construct)
2005-06-17 16:32:43 +00:00
foobar
bf94716838
- Allow doing --with-mysql --with-mysqli (no mysql libs are bundled atm)
...
- Make sure MYSQL_DIR is empty.
2005-06-07 12:39:02 +00:00
Wez Furlong
e9d474dc01
fixes for #33251
2005-06-05 19:25:01 +00:00
Georg Richter
d486da963e
added new function mysqli_get_charset
2005-06-03 08:49:01 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
Georg Richter
230681b0b3
enabled set_charset for MySQL Versions >= 5.0.6
...
added testcase for bug #33090
2005-05-21 08:46:46 +00:00
Georg Richter
3e416f738c
fix for bug #33090 (mysql_prepare doesn't return error)
2005-05-21 08:38:53 +00:00
Georg Richter
d72cd1d130
charsets_dir is no longer needed
2005-05-13 13:56:04 +00:00
Georg Richter
d8f91dc44c
mysql_set_charset now works version undependent for MySQL 4.1.13 and above
2005-05-13 13:30:22 +00:00
Georg Richter
49e1484da8
- fixed compile error under windows. Functionality for changing the
...
character set was moved to libmysql (4.1 bk tree - will be merged into
5.0 within the next days).
- renamed mysql_set_character_set to mysqli_set_charset
2005-05-13 13:11:41 +00:00
Andrey Hristov
8e97019a69
after throwing an warning bail out
2005-05-09 22:29:54 +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
Andrey Hristov
d5e0b8a628
MFB
2005-05-09 21:48:03 +00:00
foobar
8d00609794
- We skip tests when the extension is not loaded..in the php.ini
2005-05-09 21:16:49 +00:00
foobar
db1a5ab243
revert pointless patch
2005-05-09 21:16:06 +00:00
Andrey Hristov
02d0f72596
also test shared builds
2005-05-09 16:23:22 +00:00
Georg Richter
b654b20ef6
Added new function mysqli_set_character_set_name
2005-05-08 08:39:56 +00:00
Andrey Hristov
daae299653
revert this one till we have a better way to inform the user where the
...
truncation has occured
2005-05-07 12:46:29 +00:00
Andrey Hristov
91b3b49f14
return MYSQLI_DATA_TRUNCATED if data happens to be truncated
...
#the manual has to be updated
2005-05-07 08:23:39 +00:00
Andrey Hristov
70da059cc0
return directly
2005-05-07 08:03:35 +00:00
Andrey Hristov
b7df40a75a
bail out when detecting incorrect number of parameters to be bound.
2005-05-07 07:44:41 +00:00
Andrey Hristov
60c0c8e95c
initialize values because the call to zend_parse_parameters may not do it
2005-05-06 10:09:42 +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
Ilia Alshanetsky
8abc1d3b9c
e* allocation cannot fail.
2005-04-28 23:49:04 +00:00
Andrey Hristov
3b3ce2b610
fix bug #32013(MySQLi bind_result causes fatal error: memory limit reached)
...
#this is a partial fix but it cannot be better. the user has to call
#$stmt->store_result() and for a BLOB/MEDIUTEXT (and larger) space will be
#allocated as big as the biggest column value.
2005-04-27 17:53:15 +00:00
Andrey Hristov
f6b12b351e
MFB (fixing bug 31668)
2005-04-27 12:12:58 +00:00
Georg Richter
2bcae57b31
another fix for last commit (committed from wrong tree) :(
2005-04-20 13:24:08 +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
Andrey Hristov
2652762dcd
MFB
2005-04-19 15:45:07 +00:00
Andrey Hristov
eef94ff4bb
add a test case for Bug #32405 (the previous commit incorporated a fix
...
for it).
2005-04-19 13:29:37 +00:00
Andrey Hristov
2a3c71b833
- nail down another 64bit problem. this will fix about 14 failing tests
...
on amd64 (probably other 64 bit arch).
- use ulong for this boolean variable, as it was before
- throw an warning if offset passed to mysqli_stmt_data_seek is negative
2005-04-19 13:28:41 +00:00
Andrey Hristov
155b90db20
- fixing all "long" into "int" fetching problems (cause memory corruption
...
on 64 bit)
- nail down a problem because of the new MYSQL_TYPE_NEWDECIMAL introduced
in MySQL 5.0+
- Add more info to the autocommit test
2005-04-19 12:59:16 +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
Joe Orton
6974b5ecce
Mark more private functions as static.
2005-03-30 13:43:36 +00:00
Joe Orton
5aa95520cd
Mark private functions as static.
2005-03-30 12:56:58 +00:00
Antony Dovgal
646bb71503
fix typo in error message
2005-03-17 18:12:06 +00:00
Marcus Boerger
5830e46a84
- Bugfix #28840 __destruct of a class that extends mysqli not called
2005-03-06 21:40:01 +00:00
Georg Richter
2e2bfb83c4
fix for bug #31939
2005-02-25 08:43:41 +00:00
Ilia Alshanetsky
a3085602d0
Fixed bug #32081 (default socket value is not being used).
2005-02-24 23:58:59 +00:00
Georg Richter
ef6f0f00a6
fix for bug #29329
2005-02-05 10:59:38 +00:00
Georg Richter
32aaa6a7be
fixed a bug in mysql_affected_rows and mysql_stmt_affected_rows
...
in case affected_rows function returns (my_ulonglong) -1 for errors.
(Thanks to Antony Dovgal for reporting this bug)
2005-01-28 17:35:37 +00:00
Antony Dovgal
6ffd569410
MFB: fix leak in mysqli_fetch_array()
2005-01-27 14:41:48 +00:00
Georg Richter
7148919940
fix for bug #31710 (return value for mysql_rollback is reverted)
...
fixed also same behaviour for mysql_commit and mysql_autocommit
2005-01-27 10:18:28 +00:00
Antony Dovgal
9d9e4379af
MFB: fix segfault when invalid field offset is passed to mysqli_fetch_field_direct()
2005-01-27 01:14:43 +00:00
Zak Greant
f3d39ff406
Added standard emacs and vim modelines
2005-01-16 19:28:55 +00:00
Georg Richter
6b49e2d9e7
fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
...
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Marcus Boerger
01d6db92fc
- Fix shared build
2005-01-08 13:36:17 +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
Sebastian Bergmann
683515596b
ZTS fix.
2005-01-07 16:24:51 +00:00
Sebastian Bergmann
aca657eca2
Sync with config.m4.
2005-01-07 16:23:13 +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
57fa54af2d
added property 'id' to retrieve statement id (required by PEAR DB, to support
...
mysqli prepared statements)
2004-12-29 11:46:13 +00:00
Georg Richter
dc63cb7feb
fixed testcase 047
...
fixed windows compile error
2004-12-27 15:39:35 +00:00
Georg Richter
698c0361d6
Fix for feature request #31015 : added length for field length
2004-12-27 11:48:57 +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
Georg Richter
5c50f0bb30
prevent type conversion during mysql_stmt_execute for NULL variables
2004-12-20 16:39:14 +00:00
Antony Dovgal
01f31dcccb
fix buffer overrun and remove debug printf() call
2004-12-09 08:22:06 +00:00
Georg Richter
f0f08ec32b
fixed windows compile errors (Thx to Sebastian Bergmann)
2004-12-06 05:15:03 +00:00
Georg Richter
6d27573ec2
added skipif section
2004-12-04 08:50:33 +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
Edin Kadribasic
d2b5b62af5
MySQL is releasing client libraries that compile out of the box
...
with mysqli extension, so there is no need for a specially compiled
client library anymore.
2004-11-04 02:41:40 +00:00
Georg Richter
b557bdb665
added multi resultset support in mysql_connect
2004-11-01 09:53:16 +00:00
Georg Richter
b8863135a2
Fixed tests for empty dates (see http://bugs.mysql.com/?id=6058 )
...
Fixed memleak in mysqli_stmt_bind_result
Fixed error handling for mysqli_multi_query
2004-11-01 07:19:26 +00:00
Georg Richter
f4f84ac9ab
Minor fix for mysqli_connect: checking socket_len for NULL Values
...
(Thx to Paul DuBois)
2004-10-19 05:14:09 +00:00
Georg Richter
eb3900b77a
forgot to remove comment in last commit
2004-09-04 14:16:52 +00:00
Georg Richter
62ed6a0f2b
fixed bug #29283
2004-09-02 04:53:01 +00:00
Georg Richter
616d49aaf6
test for local_infile_handler
2004-08-25 13:58:03 +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
8ff9528138
minor fix in mysqli_prepare: copying stmt errormessag to mysql structure
2004-08-12 22:14:06 +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
dede51adf6
fixed bug in mysql->client_version
...
added mysql->client_info property
2004-07-26 05:44:06 +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
96c002e07c
changed warning (bug #29298 ) for outdated client library
2004-07-22 07:24:55 +00:00
Sara Golemon
f064a2c8b9
This should fix binary safety for bound results or may coogle strike me down.
2004-07-22 03:23:33 +00:00
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
Georg Richter
15ef63b39a
fixed paraenthesis warning in mysql_stmt_attr_set/get
2004-07-17 10:48:28 +00:00
Georg Richter
bfd3c9ecfb
prototype fixes
2004-07-13 17:04:16 +00:00
Georg Richter
f61dbf06a1
changed mysqli_stmt_reset (returns now bool instead of void)
2004-07-13 16:12:28 +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
Georg Richter
202d2990a9
fixed crash (changed MYSQL TO MY_MYSQL in mysql_stmt_init)
2004-06-08 06:20:58 +00:00
Georg Richter
1b40042b35
forgot to remove Win32 restrictions for mysql methods
2004-06-07 08:34:52 +00:00
Georg Richter
f0468116c0
removed conditional defines for load_data_infile_handlers on windows
...
(4.1.2 windows build is fixed now on mysql.com)
2004-06-06 08:52:19 +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
Derick Rethans
29273ca7a9
- Align help output for configure.
2004-03-31 21:11:23 +00:00
Hartmut Holzgraefe
eeb172b29f
"The Visa to Sibiria" (work in progress)
...
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +00:00
Georg Richter
460ec22808
ups - changed alias instead of method before
2004-03-21 20:45:57 +00:00
Georg Richter
535b190ac1
renamed get_metadata method to get_result_metadata.
...
(We have to differentiate between result_metadata and param_metdata.
mysql_stmt_param_metadata will be added in libmysql 4.1.3)
2004-03-21 20:43:44 +00:00
Stanislav Malyshev
5b0f6b1f34
Update for new read_property API
2004-03-21 18:28:38 +00:00
Georg Richter
e6ac744282
fixed problems in mysql_stmt_init (missing alloc from stmt)
2004-03-18 13:04:55 +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
Georg Richter
a3bd712b78
added new function mysql_stmt_free_result
2004-03-10 09:50:05 +00:00
Marcus Boerger
59804de32e
Missing buffer->val change
2004-03-09 14:29:20 +00:00
Georg Richter
612ab199ad
fixed memleaks in bind functions
...
added 4.1.2 support (renamed functions)
2004-03-09 12:01:23 +00:00
Edin Kadribasic
865903a2a4
Attempt at fixing win32 link errors
2004-03-03 18:54:20 +00:00
Edin Kadribasic
fb861026d8
Add missing source file
2004-03-03 18:36:30 +00:00
Edin Kadribasic
664998fa50
Replace mysql with mysqli in paths to allow building both mysql and mysqli
2004-03-03 18:15:56 +00:00
foobar
ac5fa854f3
ws & cs fixes
2004-02-26 12:33:23 +00:00
Georg Richter
700bb4dbb4
prototype fix for mysqli_ping
2004-02-26 12:24:21 +00:00
Georg Richter
8e52a1a8a3
added MySQLI ini entries
...
added ini parameter for mysql->reconnect
2004-02-26 11:40:35 +00:00
Georg Richter
5ffccfffda
removed blocking calls to mysql_set_server_option (MYSQLI_DISABLE_MQ)
...
added mysqli_multi_query to function table
changed stmt->affected_rows property (http://bugs.mysql.com/?id=2247 ) for 4.1.2
2004-02-26 08:27:24 +00:00
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16:27 +00:00
foobar
cae6ae8250
Do not corrupt mysql build with mysqli build stuff. (should fix #27387 )
2004-02-25 13:29:30 +00:00
Georg Richter
c65d7997c3
fixed prototypes for mysqli_connect_err* functions
...
(thx to Mehdi Achour)
2004-02-23 16:49:18 +00:00
Georg Richter
b3979e76ba
fixed report message
...
Disabled reconnect option
2004-02-23 06:35:18 +00:00
Sebastian Bergmann
7af39b1aad
Can't test whether it works (no current >=mysql-4.1.2 available on Windows), but it should.
2004-02-21 15:05:52 +00:00
Georg Richter
12c6378412
fixed typo in method alias
2004-02-21 07:37:41 +00:00
Georg Richter
1f67407f84
Moved functions for replication support in to file mysqli_repl.c
...
- these functions are marked as experimental now in documentation
not sure if we will replace or extend them with NDB support in
April
2004-02-20 13:09:14 +00:00
Georg Richter
a12c95e1be
changed return value of mysql_fetch
...
- instead of MYSQL_NO_DATA mysql_fetch will now return NULL
2004-02-18 13:26:57 +00:00
Georg Richter
f7ca7c469a
changed output
2004-02-17 07:45:15 +00:00
Georg Richter
d23dff1220
fixed some tests
...
added skip section for prepared statements when using SHOW command
2004-02-16 15:32:46 +00:00
Georg Richter
d5084182ce
fixed several binding problems
2004-02-15 20:23:05 +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
3e2907d614
changed first param in mysqli_bind_param
2004-02-11 07:39:28 +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
cccb92b233
Corrected binding:
...
if column has type DECIMAL it will converted to string now.
Thanks to Brian Aker for pointing this out.
2004-01-31 07:51:03 +00:00
Georg Richter
1baf3d3478
added nuw_rows property for statement object
2004-01-30 22:45:19 +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
Georg Richter
692726cdd3
changed prototype mysql_dataseek from void to bool
...
add check for specified offset
2004-01-27 13:56:03 +00:00
Georg Richter
429aa55248
prototype fixes
...
removed method field_tell (which is already property current_field)
2004-01-27 13:23:54 +00:00
Georg Richter
c139c48a99
fixed compiler warning (thx to Marcus Boerger)
2004-01-26 20:08:16 +00:00
Georg Richter
5066f521db
proto fixes
...
removed mysqli_read_query_result (will be removed in libmysql)
2004-01-26 13:38:13 +00:00
Georg Richter
85510ff3a1
more prototype fixes.
...
fixed a bug in mysqli_send_long_data
2004-01-26 07:39:57 +00:00
Georg Richter
a2380e901b
prototype fix for mysqli_fetch
2004-01-25 12:01:36 +00:00
Georg Richter
ed135edbda
prototype fixes
2004-01-24 14:38:16 +00:00
foobar
6a1d0114a7
Silence some compile warnings
2004-01-23 03:28:59 +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
Marcus Boerger
635e3b1980
Proto fix
2004-01-12 00:34:37 +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