#22918 [Opn->Csd]: mbstring configuration variables are marked PHP_INI_ALL, but this is false.

From: Date: Tue, 08 Apr 2003 14:19:36 +0000
Subject: #22918 [Opn->Csd]: mbstring configuration variables are marked PHP_INI_ALL, but this is false.
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15030@lists.php.net to get a copy of this message
ID: 22918 Updated by: hirokawa@php.net -Summary: postgres get default sql is missing 1 and. Reported By: alan at akbkhome dot com -Status: Open +Status: Closed Bug Type: PEAR related -Operating System: all +Operating System: Linux -PHP Version: 4.3.2RC1 +PHP Version: 4.3.0 -Assigned To: +Assigned To: hirokawa New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-03-26 23:28:06] alan at akbkhome dot com Ok, - the patch below is probably buggered up.. - but the principle is that you need to add AND f.attnum = a.adnum to the end of the get default value query otherwise any rows with defaults will get the same value as the first one. Index: DB/pgsql.php =================================================================== RCS file: /repository/pear/DB/DB/pgsql.php,v retrieving revision 1.17 diff -u -r1.17 pgsql.php --- DB/pgsql.php 14 Feb 2003 11:02:00 -0000 1.17 +++ DB/pgsql.php 27 Mar 2003 05:24:39 -0000 @@ -606,7 +606,7 @@ FROM pg_attribute f, pg_class tab, pg_type typ, pg_attrdef a WHERE tab.relname = typ.typname AND typ.typrelid = f.attrelid AND f.attrelid = a.adrelid AND f.attname = '$field_name' - AND tab.relname = '$table_name'"); + AND tab.relname = '$table_name' AND f.attnum = a.adnum"); $row = @pg_fetch_row($result, 0); $num = str_replace('\'', '', $row[0]); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22918&edit=1

« previous php.pear.dev (#15030) next »