~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
--TEST--
2
 
mysqli_bind_result (SHOW)
 
2
mysqli_stmt_bind_result (SHOW)
3
3
--SKIPIF--
4
4
<?php
5
5
        require_once('skipif.inc');
10
10
        $link = my_mysqli_connect($host, $user, $passwd);
11
11
 
12
12
        $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
13
 
        mysqli_execute($stmt);
 
13
        mysqli_stmt_execute($stmt);
14
14
 
15
15
        if (!$stmt->field_count) {
16
16
                printf("skip SHOW command is not supported in prepared statements.");
26
26
        $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
27
27
 
28
28
        $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
29
 
        mysqli_execute($stmt);
 
29
        mysqli_stmt_execute($stmt);
30
30
 
31
 
        mysqli_bind_result($stmt, $c1, $c2);
32
 
        mysqli_fetch($stmt);
 
31
        mysqli_stmt_bind_result($stmt, $c1, $c2);
 
32
        mysqli_stmt_fetch($stmt);
33
33
        mysqli_stmt_close($stmt);
34
34
        if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && mysqli_get_server_version($link) < 50000) {
35
35
                /* variables are binary */