Re: Re: Re: [PECL-DEV] New PHP extension for Win32

From: Date: Wed, 20 Oct 2004 18:58:12 +0000
Subject: Re: Re: Re: [PECL-DEV] New PHP extension for Win32
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1508@lists.php.net to get a copy of this message
Lets do this then: 1) include the new winreg functions. We would have 2 api's for a while. 2) map the old reg_* functions to winreg functions to reduce the amount of source code. 3) release version 2.0 of the extension without the reg_* functions. This needs to be some time out to give the users a chance to change the code. - Frank > On Tue, 19 Oct 2004 14:20:47 +0200, Tomas Pavlicek > <tomas.pavlicek@atlas.cz> wrote: > > For these resons I would like to leave the design of the Winreg module > > unmodified. We could solve the problem by incorporating whole Winreg > > module into Win32std and (because it is a superset of Win32std > > registry functions) either leave the existing functions untouched, > > just marking them superceded, or map their functionality to Winreg > > counterparts to avoid the duplicities in the code. > > This option feels nicer to me for BC purposes; we can mark the old API > as deprecated and keep it around for a little while, and then > transition to your third option and drop them out in the next major > release for that extension (2.0), as per the versioning rules (thou > shalt not break BC in the API of a package unless you also change the > major version number). > > > In future I would really like to include some kind > > of registry support directly in the standard Win32 PHP distribution. > > The access to registry is very important on Windows platform and can be > > compared with files access on *nix systems. > > Yes, it is important, but I don't think it should be in the core. If > the win32std extension gets to be extremely popular we can include the > DLL in the download, but to be honest, there is not much difference > between putting it there and putting it in the pecl download .zip file > that is available alongside it. > > Don't forget that you can use the COM extension to gain access to the > registry; this has the added advantage (some might disagree :-) of > being something that commercial anti-virus products can hook into and > use to protect the end-users system from malicious scripts. > > --Wez. > > -- > PECL development discussion Mailing List (http://pecl.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pecl.dev (#1508) next »