Ulf Wendel
e6e029e399
A bit more verbose message in case of problems. It's been helpful to
...
debug a cross-server version issue.
2007-07-12 13:57:36 +00:00
Ulf Wendel
94e0e4c322
1) Whitespace/CS
...
2) Fixing [U]EXPECTF to be portable among different MySQL Server versions
2007-07-12 13:50:51 +00:00
Ulf Wendel
894e5c6a5b
1) Whitespace/CS
...
2) Added test for default link
2007-07-12 13:44:00 +00:00
Ulf Wendel
a6a5638dd3
1) Whitespace/CS
...
2) Added: skip test with mysqlnd, mysqlnd does not support this function
currently
2007-07-12 13:35:16 +00:00
Ulf Wendel
fd45bad4c8
1) Whitespace/CS
...
2) Added check for default connection
2007-07-12 13:31:27 +00:00
Ulf Wendel
3809493bd7
1) Whitespace/CS
...
2) Fixing [U]EXPECTF to accept whatever db/schema name gets used for the
test run
2007-07-12 13:27:26 +00:00
Ulf Wendel
0ccc7d618f
1) Whitespace/CS
...
2) Tiny check for default link added
2007-07-12 10:52:23 +00:00
Ulf Wendel
063987fed5
1) Whitespace/CS
...
2) Portability: don't expect any values and have them in the [U]EXPECTF,
if they will be available only with certain MySQL Server versions.
2007-07-12 10:47:00 +00:00
Ulf Wendel
da36f2be2a
1) Whitespace/CS
...
2) One line added to test default connection
2007-07-12 10:30:03 +00:00
Ulf Wendel
78628dad2a
1) Whitespace/CS
...
2) Test mysql.default_socket only if we're using a socket to connect
2007-07-12 10:25:40 +00:00
Ulf Wendel
e58bb46329
Whitespace/CS only
2007-07-12 10:18:14 +00:00
Ulf Wendel
dcf91469db
Whitespace/CS only
2007-07-11 15:51:48 +00:00
Ulf Wendel
cf0231da96
Whitespace/Coding Standards and check added for default connection.
2007-07-11 15:49:32 +00:00
Ulf Wendel
c1ab1512fd
Whitespace only
2007-07-11 15:47:38 +00:00
Ulf Wendel
7ff686d786
Whitespace and more testing.
2007-07-11 15:26:07 +00:00
Ulf Wendel
90ad13cca1
Whitespace and new checks for default connection.
2007-07-11 15:17:47 +00:00
Ulf Wendel
d552edf5e8
Whitespace only
2007-07-11 15:13:10 +00:00
Ulf Wendel
3f0339a42c
Mainly Whitespace/CS changes. Partly "too many arguments" check added.
2007-07-11 15:07:28 +00:00
Ulf Wendel
21e47c9a03
Whitespace and new "too many arguments" check.
2007-07-11 14:45:53 +00:00
Ulf Wendel
8777568cc2
Whitespace/Coding Standards and new check what happens if one tries to
...
free not a mysql resource but a file resource.
2007-07-11 14:44:18 +00:00
Ulf Wendel
2af97387bb
Whitespace/Coding Standard
2007-07-11 14:41:54 +00:00
Ulf Wendel
dabb012f91
Removing reference to skipifemb.inc which is not needed and
...
Whitespace/Coding Standards.
2007-07-11 14:36:26 +00:00
Ulf Wendel
3822833c37
Whitespace and the usual suspect: skipifemb.inc
2007-07-11 14:28:22 +00:00
Ulf Wendel
4ec515c660
Whitespace/Coding Standards, removal of skipifemb.inc, improved testing
...
and checking for expected field types.
2007-07-11 14:11:18 +00:00
Ulf Wendel
857954815f
Whitespace and - as usual - removing skipifemb.inc
2007-07-11 14:01:39 +00:00
Ulf Wendel
cbe689d16c
Whitespace/Coding Standards, removing reference to skipifemb.inc,
...
tweaking EXPECTF.
2007-07-11 13:56:37 +00:00
Ulf Wendel
6c353e1046
Whitespace. Removing reference to skipifemb.inc.
2007-07-11 13:51:31 +00:00
Ulf Wendel
30df81aa62
Aside from whitespace / coding standards this one is more interesting.
...
We added a flag to check if a MySQL column type is a binary type. If so,
ext/mysql should return data for such columns not as unicode strings but
as binary strings if unicode.semantics is on.
2007-07-11 13:36:11 +00:00
Ulf Wendel
b0ac1f0171
Whitespace / Coding Standards
2007-07-11 13:29:41 +00:00
Ulf Wendel
0880484234
1) Whitespace / Coding Standards
...
2) Don't even dare to have variables that sound like connection parameters and don't come from connect.inc
3) skipifem.inc is not there for ext/mysql tests
2007-07-11 13:22:17 +00:00
Ulf Wendel
8324e16636
Whitespace/Coding Standards.
...
The tests origin from ext/mysqli/tests. ext/mysqli/tests should have a
skipifemb.inc, which is not needed and not available for ext/mysql/tests.
Nevertheless the tests tried to include that file.
2007-07-11 12:57:57 +00:00
Ulf Wendel
7943e812fb
Whitespace/Coding Standards.
...
Test for default link added.
2007-07-11 12:50:34 +00:00
Ulf Wendel
b9f536333c
Those two should be whitespace / coding standards only. However, in some of
...
my commit messages I might be wrong, it's hard to say what we added to the
tests and I might miss this or that little detail, although I check the diff
before commit.
2007-07-11 12:47:23 +00:00
Ulf Wendel
9ac87ac9dd
Should be whitespace/coding standards changes only.
2007-07-11 12:28:46 +00:00
Ulf Wendel
1aa8031a0f
Mostly whitespace (replacing spaces with tab). Additional, weak test for
...
"host:port:socket" syntax, just to make sure we cover the underlying
C code.
2007-07-11 12:26:21 +00:00
Ulf Wendel
4c1181a08a
Whitespace: replacing spaces with tab to follow coding conventions.
...
One tiny change in mysql_close.phpt: don't overrule connection parameter
in any of the tests. Alway take connection parameter, including the database
name ($db), from connect.inc.
2007-07-11 11:57:45 +00:00
Ulf Wendel
5a888bc9bd
Trying to fix broken tests. The last set of files committed a few weeks ago
...
broke almost all tests. I'll try to merge the CVS with a working set of
tests from the mysqlnd development repository. With this first set of
changes most tests should run (and pass) again.
Note the additional environment variables in connect.inc that you can
use to control a test run.
More changes to come.
2007-07-11 11:12:10 +00:00
Scott MacVicar
8842c24db7
MFB: Fixed bug #41350 (my_thread_global_end() error during request shutdown on Windows).
2007-06-25 20:19:30 +00:00
Antony Dovgal
806a90877b
reset active_result_id when fetching persistent connection
...
patch by Peter Christensen
2007-06-07 12:17:16 +00:00
Antony Dovgal
a9230e2726
fix test
2007-05-29 12:01:14 +00:00
Ilia Alshanetsky
cbcb1840f3
MFB
2007-05-28 23:43:24 +00:00
Scott MacVicar
1369b797a9
MFB: Typo from old parsing API spotted by bjori
2007-05-14 18:10:10 +00:00
Scott MacVicar
1029532b2f
MFB: Add mysql_set_charset() so that the connection encoding can be changed. This is similar to the SET NAMES statement but allows the mysql_real_escape_string to use the correct character set.
2007-05-14 17:11:50 +00:00
Antony Dovgal
5e5dbfa35e
revert
2007-04-23 09:32:36 +00:00
Antony Dovgal
a95ac253db
fix #41083 (mysql_ping() requires MYSQL_OPT_RECONNECT to be set since MySQL 5.0.13)
2007-04-14 10:19:10 +00:00
Martin Kraemer
e46b1b3747
Typo
2007-03-14 09:49:58 +00:00
Marcus Boerger
20a40063c5
- avoid sprintf
2007-02-24 16:25:58 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Antony Dovgal
4cf068ac32
include basic_functions.h for php_get_current_user() declaration
2006-12-28 15:44:50 +00:00
Andrey Hristov
c60949d0b1
space to tab
2006-11-22 10:11:58 +00:00
Georg Richter
cdd3e8be92
added testcases for ext/mysql (written by Ulf Wendel)
2006-11-19 12:14:44 +00:00
Georg Richter
317564fc1a
added unicode support for ext/mysql
2006-11-19 12:10:19 +00:00
Hannes Magnusson
176b72284c
Error message clean up
...
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Antony Dovgal
7205725d75
init variable, eliminate compile warning
2006-08-02 10:04:02 +00:00
Hannes Magnusson
e18bb1ce3d
Fix/add SKIPIF
2006-06-27 00:09:23 +00:00
Hannes Magnusson
731c3e4db0
Removed custom deprecate error messages
...
Use the fancy ZEND_ACC_DEPRECATED flag.
2006-06-26 11:31:19 +00:00
Dmitry Stogov
943960c324
Added automatic module globals management
2006-06-13 13:12:20 +00:00
Michael Wallner
1ba7a6812c
MFB: #37630 MySQL extensions should link against thread safe client libs if built with ZTS
2006-06-01 19:15:31 +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
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Ilia Alshanetsky
8e7b44c7f3
MFB51: Fixed test to work when TCP/IP access to MySQL is disabled or test
...
server is on a remote machine.
2006-02-06 14:25:28 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
foobar
a208d9a966
- Nuke php3 legacy
2005-12-06 02:28:26 +00:00
foobar
34ad5ab731
- list_entry -> zend_rsrc_list_entry
2005-12-05 23:31:09 +00:00
Antony Dovgal
39c135b1c4
MF51:
...
fix #35536 (mysql_field_type() doesn't handle NEWDECIMAL)
add also SET, ENUM, NEWDATE and GEOMETRY to the switch
2005-12-05 13:20:53 +00:00
Sebastian Bergmann
52b001cc05
ZTS fixes.
2005-08-12 14:08:28 +00:00
Andrei Zmievski
264cec8be6
Unicode support.
2005-08-11 23:36:07 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
07862d7218
consistent naming: prefix always with MYSQL_
2005-06-30 14:15:51 +00:00
foobar
9f704ce6d1
This is not mysqli, where 5th parameter is port.
2005-06-20 00:16:31 +00:00
foobar
7a794caed0
Another netware fix
2005-06-11 23:32:46 +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
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
foobar
d57f08147d
- Fixed bug #32591 (ext/mysql: Unsatisfied symbol: ntohs with HP-UX)
2005-04-07 22:23:15 +00:00
Ilia Alshanetsky
d97da3e222
Fixed bug #31288 (Possible crash in mysql_fetch_field(), if
...
mysql_list_fields() was not called previously).
2005-02-22 14:58:49 +00:00
foobar
69eec3f3b9
MFB_4_3: Quote macro names in AC_DEFUN()
2004-12-30 07:08:39 +00:00
Joe Orton
2685ca935f
Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
...
to support multi-ABI platforms.
2004-11-03 14:32:52 +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
Ilia Alshanetsky
f9cec029c8
Fixed bug #28632 (Prevent open_basedir bypass in MySQL's LOAD DATA LOCAL).
2004-06-04 15:26:54 +00:00
Ilia Alshanetsky
0e443166e0
Fixed bug #28627 (When multiple MySQL links are used default link is
...
leaked).
Patch by: gavin at ipalsoftware dot com
2004-06-04 13:49:31 +00:00
Ilia Alshanetsky
7a11fe48b6
Fixed bug #28087 (Do not force mysql.trace_mode to 0 on every request).
2004-04-23 17:03:52 +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
Jan Lehnardt
bf807f6d69
- fix typo
2004-02-16 14:41:38 +00:00
Zeev Suraski
30171a7590
zend_default_classes.h -> zend_exceptions.h
2004-02-12 10:43:27 +00:00
Andrey Hristov
463f510796
message about that mysql_list_tables() is deprecated
2004-01-27 23:14:42 +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
1d86ea8851
Added missing skip condition.
2004-01-16 15:16:26 +00:00
Marcus Boerger
3fb99f62e0
Synch mysql_fetch_object with mysqli, sqlite and pgsql
2004-01-12 02:34:55 +00:00
Marcus Boerger
d129242ad5
Add some tests
2004-01-12 02:31:08 +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
Derick Rethans
0cfadb914c
- Fixed bug #26751 (PHP can't find the MySQL socket on a case sensitive file
...
system).
2003-12-31 11:27:52 +00:00
Marcus Boerger
b88ad57b73
Revert this part, too
2003-12-07 15:39:56 +00:00
Marcus Boerger
d57004274b
Revert, not needed here
2003-12-07 15:26:09 +00:00
Sebastian Bergmann
dea716a4e1
Support for new Win32 build bliss.
2003-12-05 06:09:29 +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
Ilia Alshanetsky
763b39cc1d
Fixed compile warnings.
2003-10-03 01:07:35 +00:00
Ilia Alshanetsky
4aaa2becbe
String format stuff.
2003-09-22 23:27:51 +00:00
Ilia Alshanetsky
9d9727aac5
Fixed compiler warnings.
2003-08-28 19:17:34 +00:00
Ilia Alshanetsky
93bcd55eaf
emalloc -> safe_emalloc
2003-08-12 00:58:52 +00:00
Ilia Alshanetsky
5c6ee17a9e
Fixed bug #24977 (Revert mysql_select_db optimization)
2003-08-08 13:36:28 +00:00
Ilia Alshanetsky
5fcff2d872
* Fixed bug #24535 (Crash when retrieving data from unbuffered result after
...
the original connection has been changed).
* Fixed a crash when trying to fetch an unbuffered result after
mysql_close() has been called.
* Added a check to make sure no unbuffered results are inside the buffer
when calling functions that internally execute a query. Affected functions
are: mysql_select_db(), mysql_list_dbs(), mysql_list_tables(),
mysql_list_processes(), mysql_list_fields(), mysql_stat() and mysql_ping().
* Do not re-select a database if the database to be selected is the same.
2003-07-22 16:05:32 +00:00
Sascha Schumann
94756ffb8b
Add short notice regarding unbundled client lib
2003-07-18 09:53:04 +00:00
Sebastian Bergmann
81543d043e
COMPILE_DL_MYSQL_MYSQL -> COMPILE_DL_MYSQL
2003-07-06 20:38:56 +00:00
Edin Kadribasic
dda902d56d
Fix shared win32 build
2003-07-01 09:44:14 +00:00
Shane Caraveo
082a1489d2
fix building mysql as a loadable extension
2003-06-28 22:28:44 +00:00
foobar
a6a321c1ac
clean up a bit.
2003-06-25 03:53:17 +00:00
Sterling Hughes
d4cd1ef084
remove the bundled libmysql, and update the config.m4 file as necessary.
...
this works locally, but everyone, *please* test
2003-06-23 01:10:58 +00:00
Ilia Alshanetsky
d860759db9
Make the default mysql connection timeout 60 seconds rather then unlimited.
2003-06-18 15:19:16 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Andrey Hristov
3ae8d27176
proto fixes
2003-06-10 14:06:20 +00:00
Georg Richter
0a2968a75f
fixed mysql bug #564 ( http://bugs.mysql.com/bug.php?id=564 )
2003-06-07 16:15:22 +00:00
Sterling Hughes
287d5f277e
don't do this on startup, lazy initialize it. This takes up > 17% of load
...
time in CGI mode
2003-06-01 02:29:28 +00:00
Ilia Alshanetsky
209bba391b
Fixed bug #23888 (Missing input validation for flags parameter)
2003-05-30 14:08:14 +00:00
Rasmus Lerdorf
8effacb144
MFB
2003-05-28 16:19:08 +00:00
Derick Rethans
0596442eef
- MFB: Fixed bug #23661 : mysql_fetch_array gives no warning on an invalid
...
result_type
2003-05-16 19:09:19 +00:00
foobar
b83fc1a802
- Fixed some AIX/HPUX compile issues.
...
# Just a modified diff of the same file found in mysql 4.0.12 :)
2003-04-25 21:31:23 +00:00
Derick Rethans
a802e0d6b3
- Fixed protos
2003-04-11 09:53:01 +00:00
Ilia Alshanetsky
8a9ff734a0
Fixed a crash in the query tracer output due to buffer overflow.
...
Fixed a crash in notice message for unbuffered query.
2003-04-10 04:35:39 +00:00
Edin Kadribasic
688c24bcaa
MFB
2003-03-27 13:30:40 +00:00
Ilia Alshanetsky
5c159052bf
Added missing header that prevents successful compilation.
2003-03-24 15:21:53 +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
Wez Furlong
0a18a9d744
A add much more useful select(2) implementation than is provided by
...
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.
This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.
Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Ilia Alshanetsky
453368afdf
Removed pointless checks.
2003-01-30 02:33:16 +00:00
Ilia Alshanetsky
e2868b5788
Removed pointless memory allocation checks.
2003-01-18 19:41:56 +00:00
Georg Richter
5312594a27
fixed bug #21498
2003-01-08 11:00:06 +00:00
Sascha Schumann
e180f20e63
tell user which header files could not be found
2003-01-07 09:49:08 +00:00
Georg Richter
8aeb7f35bc
fixed missing & (Thx to Sebastian Bergmann)
2003-01-06 14:13:47 +00:00
Anantha Kesari H Y
303f888a09
Changes for NetWare makefile.
2003-01-06 09:05:59 +00:00
Georg Richter
2fbb9a5247
fixed bug #21435
2003-01-05 20:53:06 +00:00
Anantha Kesari H Y
32ef849171
Modified for NetWare.
2003-01-03 14:31:31 +00:00
Anantha Kesari H Y
90ba724072
Modified for NetWare.
2003-01-03 14:24:07 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Georg Richter
d5f02c553b
fixed some warning when using external 4.x libs
2002-12-20 18:52:27 +00:00
Georg Richter
230f4ebb06
Security fix (merged from 3.23.54)
2002-12-11 08:28:41 +00:00
Marcus Boerger
47b0e79b1a
-fix a warning that was an error
...
-php_error -> php_error_docref
2002-12-05 20:01:31 +00:00
foobar
f8c050395c
ws fix (bug: #20808 )
2002-12-05 15:44:27 +00:00
Georg Richter
208a3a3717
forgot to decrement result_allocated :(
2002-11-16 16:07:54 +00:00
Georg Richter
d46bd1cd63
removed restore_connection_defaults for pconnects (discussed on php-dev@)
...
bug #19529 closed
bug #12513 reopened
2002-11-15 10:35:10 +00:00
Derick Rethans
801c698992
- Reset globals for each request
2002-11-13 08:54:34 +00:00
foobar
aab64595fa
Using // is not very good idea..
2002-11-12 23:34:06 +00:00
Derick Rethans
28d3be43a3
- Fix warning
2002-11-12 08:11:23 +00:00
Zak Greant
c29f1aa468
Modified php_mysql_do_connect() as suggested by Nick Gaugler - using
...
mysql_ping() as a more efficient alternative to using mysql_stat() to
check if the server is alive and then calling mysql_(real_)?connect() to
reconnect.
Simple tests of opening pconnects indicate that only about 10k of data per
ping needs to be returned to the client per connection check, rather than
about 110k per status check.
2002-11-12 01:41:16 +00:00
Ilia Alshanetsky
aec6258a17
Fixed compile warnings.
2002-11-11 16:54:26 +00:00
Georg Richter
f328f3ea51
Added new functionality:
...
Warnings for table/index scans
Warnings for SQL-Errors
Warnings for non free result sets
It can be activated via ini.setting "mysql.trace_mode"
2002-11-11 12:54:06 +00:00
Marcus Boerger
15b2e277a4
fix compiler warning
2002-10-24 19:15:40 +00:00
Sascha Schumann
2909e5c9c9
centralize #include "build-defs.h" and drop (sometimes inconsistent) other
...
instances
2002-10-24 13:15:49 +00:00
foobar
3be17e3f26
- Prevent resetting the PHP_*_DIR variables if already set.
2002-10-21 02:46:13 +00:00
Yasuo Ohgaki
29d16f67f4
Remove mysql_result_seek() alias.
2002-10-17 07:24:04 +00:00