PHP uzantısı içindeki tüm işlevleri vermek nasıl?

1 Cevap php

Ben php_sqlite.dll açıldı & Depends.exe kullanarak php_sockets.dll. Get_module: Ben her ikisini de sadece 1 işlevi gördü

Nasıl. Dll derleme uzantısı tüm işlevleri dosyaları dll verebilirsiniz? AFAIK, ZEND_FUNCTION modüllerdeki fonksiyonları bildirmek için kullanılır. Lütfen bildiriniz. Thank you very much!

1 Cevap

Ben sadece tüm fonksiyonları maruz olmaz. Çağrı get_module(), fonksiyon açıklamaları ve olsun - bu uzantısı değilse, sadece ne yaptığını zend yapmak işlev işaretçileri.

If it is your extension however, consider whether you are mainly targeting PHP, C++ or want to support whatever comes your way.
If you are mainly targeting PHP and the C++ access is an exception, just do what zend does. In both other cases a C++ core with just some interfacing to PHP is what you should go for - interface generators like SWIG can ease your job and generate the PHP interface for you.