Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-553

Manual page for cubrid_close_request() should be edited

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PHP 9.1.0 0004
    • Component/s: PHP Driver
    • Labels:
      None
    • Environment:

      Any

      Description

      The example listed here:
      http://www.php.net/manual/en/function.cubrid-close-request.php

      is not a very ok one. The server mentioned is unusable and therefore the user cannot run the script to check the output. I think for all examples demodb should be used since most users will know about it or have it installed when installing cubrid.

      Secondly, there is a typo in cubrid_close_requst($req); where it should be request and not requst.

      Below is an example I wrote. If you notice any problems, let me know.

      {code}
      <?php
      $con = cubrid_connect ("localhost", 33000, "demodb");
      if ($con) {
      echo "connected successfully\n";
      $req = cubrid_execute ( $con, "select * from athlete limit 0,10",
      CUBRID_INCLUDE_OID | CUBRID_ASYNC);
      if ($req) {
      while ( list ($name, $gender) = cubrid_fetch ($req) ){ echo $name.", "; echo $gender."\n"; }
      cubrid_close_request($req); // or you can use cubrid_close_prepare($req)
      }
      cubrid_disconnect($con);
      }
      ?>{code}

        Activity

        Hide
        cn15800 谢韦华[Bert] added a comment -

        We will modiy the example.

        Show
        cn15800 谢韦华[Bert] added a comment - We will modiy the example.
        Hide
        ryin005 Ray Yin added a comment -

        The manual has been modified on http://www.php.net/manual/en/function.cubrid-close-request.php

        The issue could be closed

        Show
        ryin005 Ray Yin added a comment - The manual has been modified on http://www.php.net/manual/en/function.cubrid-close-request.php The issue could be closed

          People

          • Assignee:
            cn15800 谢韦华[Bert]
            Reporter:
            ovidiu.veliscu Veliscu Ovidiu
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: