コード例 #1
0
ファイル: swoole_table.c プロジェクト: jeevi-cao/swoole-src
PHP_METHOD(swoole_table, __destruct)
{
    swTable *table = swoole_get_object(getThis());
    if (table)
    {
        swTable_free(table);
    }
}
コード例 #2
0
ファイル: swoole_table.c プロジェクト: firedtoad/swoole-src
static PHP_METHOD(swoole_table, destroy)
{
    swTable *table = swoole_get_object(getThis());
    if (!table->memory)
    {
        swoole_php_fatal_error(E_ERROR, "Must create table first.");
        RETURN_FALSE;
    }

    swTable_free(table);
    RETURN_TRUE;
}
コード例 #3
0
ファイル: swoole_table.c プロジェクト: SteveWooo/server
static PHP_METHOD(swoole_table, destroy)
{
    swTable *table = swoole_get_object(getThis());
    swTable_free(table);
    RETURN_TRUE;
}