Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

segmentation fault  #78

@lincepro

Description

@lincepro

image

<?php  
echo "php version:" . PHP_VERSION . "\n";  
echo "swoole version:" . swoole_version(). "\n";  
\Co\run(function (){  
    $obj = new \Co\PostgreSQL();  
    $obj->connect("host=127.0.0.1 port=5432 dbname=postgres user=postgres password=");  
    $obj->query("drop table if exists foo");  
    $obj->query("create table foo(id int, uid int)");  
    $obj->metaData('foo');  
    try{  
        // 不存在的类  
        new foo;  
    } catch(\Throwable $e) {  
        echo "error:" . $e->getMessage()  . "\n";  
    }  
    echo "无法执行的代码\n";  
    echo "去掉metaData函数就能正常执行\n";  
});  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions