nauxliu / opencc4php

简繁体转换 PHP 扩展
MIT License
457 stars 86 forks source link

Unknown resource type in PHP 5 #25

Closed Gasol closed 5 years ago

Gasol commented 7 years ago

Seems like it doesn't register resource type in function opencc_open, But return zval with long value that point to opencc_t.

See https://github.com/NauxLiu/opencc4php/blob/master/opencc.c#L86