php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22918 mbstring configuration variables are marked PHP_INI_ALL, but this is false.
Submitted: 2003-03-26 23:28 UTC Modified: 2003-04-08 09:19 UTC
From: alan at akbkhome dot com Assigned: hirokawa (profile)
Status: Closed Package: PEAR related
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alan at akbkhome dot com
New email:
PHP Version: OS:

 

 [2003-03-26 23:28 UTC] 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]);
  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-08 09:19 UTC] hirokawa@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 00:01:31 2024 UTC