mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix #2090
This commit is contained in:
parent
39f6b22dae
commit
cd2006f8b7
2 changed files with 8 additions and 3 deletions
|
@ -2,6 +2,7 @@ PHP 4.0 CHANGE LOG ChangeLog
|
||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
|
|
||||||
?? ?? 1999, Version 4.0 Beta 3
|
?? ?? 1999, Version 4.0 Beta 3
|
||||||
|
- Fixed mysql_errno() to work with recent versions of MySQL (Zeev)
|
||||||
- Fixed a problem with define() and boolean values (Zeev)
|
- Fixed a problem with define() and boolean values (Zeev)
|
||||||
- Fixed inclusion of gd/freetype functions (Sascha)
|
- Fixed inclusion of gd/freetype functions (Sascha)
|
||||||
- Fixed persistency of MHASH_* constants (Sascha)
|
- Fixed persistency of MHASH_* constants (Sascha)
|
||||||
|
|
|
@ -69,8 +69,12 @@ static int le_result,le_link,le_plink;
|
||||||
|
|
||||||
#if MYSQL_VERSION_ID > 32199
|
#if MYSQL_VERSION_ID > 32199
|
||||||
#define mysql_row_length_type unsigned long
|
#define mysql_row_length_type unsigned long
|
||||||
|
#define HAVE_MYSQL_ERRNO
|
||||||
#else
|
#else
|
||||||
#define mysql_row_length_type unsigned int
|
#define mysql_row_length_type unsigned int
|
||||||
|
# ifdef mysql_errno
|
||||||
|
# define HAVE_MYSQL_ERRNO
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MYSQL_ASSOC 1<<0
|
#define MYSQL_ASSOC 1<<0
|
||||||
|
@ -90,7 +94,7 @@ function_entry mysql_functions[] = {
|
||||||
PHP_FE(mysql_list_tables, NULL)
|
PHP_FE(mysql_list_tables, NULL)
|
||||||
PHP_FE(mysql_list_fields, NULL)
|
PHP_FE(mysql_list_fields, NULL)
|
||||||
PHP_FE(mysql_error, NULL)
|
PHP_FE(mysql_error, NULL)
|
||||||
#ifdef mysql_errno
|
#ifdef HAVE_MYSQL_ERRNO
|
||||||
PHP_FE(mysql_errno, NULL)
|
PHP_FE(mysql_errno, NULL)
|
||||||
#endif
|
#endif
|
||||||
PHP_FE(mysql_affected_rows, NULL)
|
PHP_FE(mysql_affected_rows, NULL)
|
||||||
|
@ -492,7 +496,7 @@ static void php3_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
|
||||||
#if APACHE
|
#if APACHE
|
||||||
handler=signal(SIGPIPE,SIG_IGN);
|
handler=signal(SIGPIPE,SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
#if defined(mysql_errno) && defined(CR_SERVER_GONE_ERROR)
|
#if defined(HAVE_MYSQL_ERRNO) && defined(CR_SERVER_GONE_ERROR)
|
||||||
mysql_stat(le->ptr);
|
mysql_stat(le->ptr);
|
||||||
if (mysql_errno((MYSQL *)le->ptr) == CR_SERVER_GONE_ERROR) {
|
if (mysql_errno((MYSQL *)le->ptr) == CR_SERVER_GONE_ERROR) {
|
||||||
#else
|
#else
|
||||||
|
@ -1108,7 +1112,7 @@ PHP_FUNCTION(mysql_error)
|
||||||
|
|
||||||
/* {{{ proto int mysql_errno([int link_identifier])
|
/* {{{ proto int mysql_errno([int link_identifier])
|
||||||
Returns the number of the error message from previous MySQL operation */
|
Returns the number of the error message from previous MySQL operation */
|
||||||
#ifdef mysql_errno
|
#ifdef HAVE_MYSQL_ERRNO
|
||||||
PHP_FUNCTION(mysql_errno)
|
PHP_FUNCTION(mysql_errno)
|
||||||
{
|
{
|
||||||
pval *mysql_link;
|
pval *mysql_link;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue