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

[PHP]Use linked list instead of linear list for requst list in T_CUBRID_CONNECT

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PHP-8.4.1, PHP-Apricot
    • Component/s: PHP Driver
    • Labels:
      None

      Description

      We need to record the related connection in T_CUBRID_REQUEST and request list in T_CUBRID_CONNECT because of resource synchronization. Resource synchronization will happen in the following scenarios:

      1. When we close connection in PHP driver, we will close all the request handles that are created on this connection.
      2. When we close a request handle,
        • if the connection is not disconnected, we need to tell the connection to delete the related node that store information for the request handle, then free other resource that are applied for itself.
        • if the connection is closed, we just need to free the resource that are applied for itself.

      Now, a linear list was used to realize the principles, but this linear list will never be decreased for a connection. So we will use a linked list instead of linear list.

      1. APIS-176_FIX01.creview
        51 kB
        张慧
      2. APIS-176_FIX02.creview
        51 kB
        张慧
      3. APIS-176_FIX03.creview
        51 kB
        张慧

        Activity

        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-Apricot: 537

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-Apricot: 537
        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-8.4.1: 538

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-8.4.1: 538
        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-Apricot: 539

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-Apricot: 539
        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-8.4.1: 540

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-8.4.1: 540
        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-Apricot: 541

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-Apricot: 541
        Hide
        hellohuizhang 张慧 added a comment - - edited

        Commit rev on PHP-8.4.1: 542

        Show
        hellohuizhang 张慧 added a comment - - edited Commit rev on PHP-8.4.1: 542

          People

          • Assignee:
            hellohuizhang 张慧
            Reporter:
            hellohuizhang 张慧
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: