# php_hostconnect and PHP_API

- Thread: https://externals.io/message/14258
- Original archive: https://news-web.php.net/php.internals/14258
- Started by Alex Torkhov on 2005-01-01T14:31:02+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14258 — Alex Torkhov — 2005-01-01T14:31:02+00:00

URL: https://externals.io/message/14258#14258

Hi!

I'm porting libssh2 extension to windows. It doesn't want link until I 
define php_hostconnect as PHP_API in main/php_network.h.

And I want ask: why php_hostconnect doesn't defined as PHP_API (php 
4.3.10) ?

Thanks,
Alex.

---

## #14259 — Alex Torkhov — 2005-01-01T15:30:05+00:00

URL: https://externals.io/message/14258#14259 · In reply to: #14258

Hi!

Alex Torkhov wrote:
> I'm porting libssh2 extension to windows. It doesn't want link until I 
> define php_hostconnect as PHP_API in main/php_network.h.
> 
> And I want ask: why php_hostconnect doesn't defined as PHP_API (php 
> 4.3.10) ?

I mean "PHPAPI".

Thanks,
Alex.
