~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to ext/mysqli/tests/mysqli_character_set_name.phpt

  • Committer: Stas Verberkt
  • Date: 2011-02-01 09:27:15 UTC
  • Revision ID: legolas@legolasweb.nl-20110201092715-yq052iu2yl4i2eyg
Inserted PHP 5.3.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
                }
56
56
        }
57
57
 
58
 
        $charset2 = mysqli_client_encoding($link);
 
58
        $charset2 = mysqli_character_set_name($link);
59
59
        if ($charset2 !== $charset) {
60
 
                printf("[012] Alias mysqli_client_encoding returned %s/%s, expected  %s/%s\n", gettype($charset2), $charset2, gettype($charset), $charset);
 
60
                printf("[012] Alias mysqli_character_set_name returned %s/%s, expected  %s/%s\n", gettype($charset2), $charset2, gettype($charset), $charset);
61
61
        }
62
62
 
63
63
        mysqli_close($link);
66
66
                printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
67
67
 
68
68
        /* Make sure that the function alias exists */
69
 
        if (!is_null($tmp = @mysqli_client_encoding()))
 
69
        if (!is_null($tmp = @mysqli_character_set_name()))
70
70
                printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
71
71
 
72
72
        print "done!";