From:             [EMAIL PROTECTED]
Operating system: All
PHP version:      4.1.0
PHP Bug Type:     MySQL related
Bug description:  Please use Character-enable mysql_escape

in file php-4.1.0/ext/mysql/php_mysql.c line 1365
-------------------------------
Z_STRLEN_P(return_value) = mysql_escape_string(Z_STRVAL_P(return_value),
Z_STRVAL_PP(str), Z_STRLEN_PP(str));
-------------------------------
could you change from
mysq_escape_string into mysql_
to something like
#if MYSQL_VERSION_ID < 32321
        len = mysql_escape_string(out, in, size);
#else
        if (self) {
                check_connection(self);
                len = mysql_real_escape_string(&(self->connection), out,
in, size);
        }
        else
                len = mysql_escape_string(out, in, size);
#endif

(quote from mysql python module)
-- 
Edit bug report at: http://bugs.php.net/?id=14419&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to