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

From: Date: Fri, 08 Dec 2000 14:59:37 +0000
Subject: PHP 4.0 Bug #8168: mysql server on a different host and port
Groups: php.dev 
Request: Send a blank email to php-dev+get-40561@lists.php.net to get a copy of this message
From: halfleeg@yahoo.com Operating system: linux PHP version: 4.0.3pl1 PHP Bug Type: MySQL related Bug description: mysql server on a different host and port 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); -- Edit Bug report at: http://bugs.php.net/?id=8168&edit=1

« previous php.dev (#40561) next »