PHP 4.0 Bug #8168 Updated: mysql server on a different host and port

From: Date: Mon, 11 Dec 2000 11:25:07 +0000
Subject: PHP 4.0 Bug #8168 Updated: mysql server on a different host and port
Groups: php.dev 
Request: Send a blank email to php-dev+get-40824@lists.php.net to get a copy of this message
ID: 8168 Updated by: stas Reported By: halfleeg@yahoo.com Old-Status: Feedback Status: Closed Bug Type: MySQL related Assigned To: Comments: Actually, already fixed in CVS. Previous Comments: --------------------------------------------------------------------------- [2000-12-11 06:18:07] stas@php.net Could you please provide an example of troublesome code? I fail to understand what's the problem from your patch. --------------------------------------------------------------------------- [2000-12-08 09:59:37] halfleeg@yahoo.com if you make a variable with an host:port and open an connection it will REMOVE THE : between host and port the diff file of php_mysql.c is this(marco van eck fixt the bug it will help you antill the php pepole fixt it). -------------------------------------------------------- 351c351,352 < host = (*yyhost)->value.str.val; --- > host = (char *)malloc((*yyhost)->value.str.len+1); > strcpy(host,(*yyhost)->value.str.val); 362c363,364 < host = (*yyhost)->value.str.val; --- > host = (char *)malloc((*yyhost)->value.str.len+1); > strcpy(host,(*yyhost)->value.str.val); 375c377,378 < host = (*yyhost)->value.str.val; --- > host = (char *)malloc((*yyhost)->value.str.len+1); > strcpy(host,(*yyhost)->value.str.val); 425a429 > if(ZEND_NUM_ARGS()>0) free(host); 430a435 > if(ZEND_NUM_ARGS()>0) free(host); 443a449 > if(ZEND_NUM_ARGS()>0) free(host); 452a459 > if(ZEND_NUM_ARGS()>0) free(host); 477a485 > if(ZEND_NUM_ARGS()>0) free(host); 507a516 > if(ZEND_NUM_ARGS()>0) free(host); 515a525 > if(ZEND_NUM_ARGS()>0) free(host); 528a539 > if(ZEND_NUM_ARGS()>0) free(host); 539a551 > if(ZEND_NUM_ARGS()>0) free(host); 546a559 > if(ZEND_NUM_ARGS()>0) free(host); --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8168

« previous php.dev (#40824) next »