Date: 07/27/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5803 Updated: odbc_rollback fails with MS Access DB but returns true anyway"
- Previous message: Stanislav Malyshev: "Re: [PHP-DEV] browscap"
- In reply to: Stig Venaas: "[PHP-DEV] restructuring/rewriting parts of networking code"
- Next in thread: Stig Venaas: "Re: [PHP-DEV] restructuring/rewriting parts of networking code"
- Reply: Stig Venaas: "Re: [PHP-DEV] restructuring/rewriting parts of networking code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Resolver functions are used in many places, mostly gethostbyname.
> Shouldn't we use something that's thread safe? What resolver functions
> to use might also differ between platforms. What do you think about
> writing some wrapper functions so that code that uses gethostbyname uses
> a wrapper fuction. If we need to use different resolver functions we then
> only need to change it inside the wrappers.
>
> I think something similar could be done for socket stuff. Couldn't for
> instance fopen and the ftp functions use the fsockopen stuff?
>
> What do you think? I'm ready to start, I plan change things in small
> steps so that you stop me if I'm doing something stupid. If I start
> writing wrappers, where should I put it? A new file in main or
> ext/standard?
fopen is already wrapped. See the main/fopen_wrappers.c
code. Generalizing it more in order to add IPV6 support is a good idea,
but I think the fopen-wrappers code might need some cleaning first. It is
a bit of a hack job.
-Rasmus
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5803 Updated: odbc_rollback fails with MS Access DB but returns true anyway"
- Previous message: Stanislav Malyshev: "Re: [PHP-DEV] browscap"
- In reply to: Stig Venaas: "[PHP-DEV] restructuring/rewriting parts of networking code"
- Next in thread: Stig Venaas: "Re: [PHP-DEV] restructuring/rewriting parts of networking code"
- Reply: Stig Venaas: "Re: [PHP-DEV] restructuring/rewriting parts of networking code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

