From: Ulf Wendel Date: Thu, 12 Jul 2007 16:04:15 +0000 (+0000) Subject: 1) Whitespace/CS X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33c87b15d8447f66cda76a0c8a8c1c53bc62a033;p=php 1) Whitespace/CS 2) Playing with column aliases --- diff --git a/ext/mysql/tests/mysql_result.phpt b/ext/mysql/tests/mysql_result.phpt index ec6e6b20e1..d8b521dcf5 100644 --- a/ext/mysql/tests/mysql_result.phpt +++ b/ext/mysql/tests/mysql_result.phpt @@ -2,41 +2,58 @@ mysql_result() --SKIPIF-- - --FILE-- --EXPECTF-- Warning: mysql_result(): Unable to jump to row -1 on MySQL result index %d in %s on line %d @@ -50,8 +67,32 @@ bool(false) Warning: mysql_result(): Bad column offset specified in %s on line %d bool(false) +valid fields +string(1) "1" +string(1) "a" +string(1) "1" string(1) "1" string(1) "a" +string(1) "a" +some invalid fields + +Warning: mysql_result(): unknown not found in MySQL result index %d in %s on line %d +bool(false) + +Warning: mysql_result(): _test. not found in MySQL result index %d in %s on line %d +bool(false) + +Warning: mysql_result(): not found in MySQL result index %d in %s on line %d +bool(false) + +Warning: mysql_result(): _test. not found in MySQL result index %d in %s on line %d +bool(false) +_id +string(1) "1" +_label +string(2) "aa" +_foo +NULL Warning: mysql_result(): %d is not a valid MySQL result resource in %s on line %d bool(false) @@ -68,8 +109,32 @@ bool(false) Warning: mysql_result(): Bad column offset specified in %s on line %d bool(false) +valid fields +unicode(1) "1" +unicode(1) "a" unicode(1) "1" +unicode(1) "1" +unicode(1) "a" unicode(1) "a" +some invalid fields + +Warning: mysql_result(): unknown not found in MySQL result index %d in %s on line %d +bool(false) + +Warning: mysql_result(): _test. not found in MySQL result index %d in %s on line %d +bool(false) + +Warning: mysql_result(): not found in MySQL result index %d in %s on line %d +bool(false) + +Warning: mysql_result(): _test. not found in MySQL result index %d in %s on line %d +bool(false) +_id +unicode(1) "1" +_label +unicode(2) "aa" +_foo +NULL Warning: mysql_result(): %d is not a valid MySQL result resource in %s on line %d bool(false)