[PHP-DEV] CVS Account Request: tomysk
I'd like to request CVS access to the PEAR/PECL effort so I can contribute a couple of modules I've written. Requested username: daggilli David Gillies San Jose Costa Rica __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: daggilli
Ignore previous subject line, username request is daggilli --- David Gillies [EMAIL PROTECTED] wrote: I'd like to request CVS access to the PEAR/PECL effort so I can contribute a couple of modules I've written. Requested username: daggilli David Gillies San Jose Costa Rica __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: daggilli
Contributing two modules which I hope to become part of PEAR (or maybe even core). One is a module (timezone) to parse tzfile(5) timezone files to find offsets from UTC for a given timezone at an arbitrary time in the past or future (Unix epoch). The other (securesocket) is a module that exposes (at present) approximately 80 functions from the OpenSSL library (including functions for buffered I/O). It is intended for SSL developers that wish to code at a lower level than is offered by the PHP streams mechanism, particularly for rapid porting from C/C++ implementations. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Contributing to PHP - how?
OK, I've been using PHP since about six months after Rasmus decided to share his brainchild with us. Can someone PLEASE point me to the appropriate mechanism to contribute my own modules? I'm sure it's out there, but hours of perusing the PHP site and Google don't help. At present all I have is a tiny module that groks tzfile(5) files to get you historical offsets from UTC, and another one that exposes about 80 or so low-level routines from the OpenSSL library (so you can actually talk SSLv23/TLSv1 - including line-buffered I/O - to port 443/whatever on a webserver without PHP streams), but I'd like to cast them upon the waters (as part-payment for the bread that has already returned to me an hundred-fold). Can someone help? From what I understand, PECL is the best codespace for this. If so, cool (I don't expect my work to hit PHP core - it's itch-scratching code). But how do I contribute it? Best Wishes David Gillies San Jose Costa Rica __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Timezone functions
OK, so I've had a couple of replies stating interest in this. How do I go about contributing my code? Best Wishes David Gillies San Jose Costa Rica --- David Gillies [EMAIL PROTECTED] wrote: My module exposes a single function, timezone_offset(). From the module code: proto int timezone_offset(string zfVal,int timeVal) __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [PATCH] new idate() - sunrise() - sunset() functions
In a similar itch-scratching moment I whipped up a trivial PHP module that groks tzfile timezone files to give you the offset from GMT at any time in the Unix epoch. I needed this to preflight a bunch of data which had been gathered with a lot of disparate time zones into a single UTC version, but I thought it might merit further dissemination. Anyone interested? Best Wishes David Gillies San Jose Costa Rica sunrise() - sunset() functions __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Timezone functions
My module exposes a single function, timezone_offset(). From the module code: proto int timezone_offset(string zfVal,int timeVal) Return offset from GMT for specified timezone file at specified Unix time. Both parameters are optional. Default is /etc/localtime (unless overridden in initialisation file) and current time of day as returned by time(). In other words, if you call timezone_offset(/usr/share/zoneinfo/Europe/Warsaw,482791331) then it will give you the deviation from UTC in Poland on 19th April 1985 at 14:42:11. It works by parsing files in tzfile(5) format. Can someone point me at a description of the procedure to make a contribution to PEAR or PECL? David Gillies if i grasp u, my new 'idate(Z)' 'll do the job for u. moshe -- --- Moshe Doron [EMAIL PROTECTED] wrote: David Gillies [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In a similar itch-scratching moment I whipped up a trivial PHP module that groks tzfile timezone files to give you the offset from GMT at any time in the Unix epoch. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: Fwd: Re: [PHP-DEV] ext_skel
OK, how about a much-expanded version for 4.3.1, say? I'm a big fan of self-documenting code (use the source, Luke). Perhaps a default function with all the bells and whistles (checking for references, grabbing a resource, etc, all documented up the wazoo). Best Wishes David Gillies San Jose Costa Rica --- Andi Gutmans [EMAIL PROTECTED] wrote: To: David Gillies [EMAIL PROTECTED] From: Andi Gutmans [EMAIL PROTECTED] Subject: Re: [PHP-DEV] ext_skel Yeah but then it might make sense to print something like Argument passed = , no? Andi At 08:56 AM 12/23/2002 -0800, David Gillies wrote: Well, if nothing else, for the novice extension developer it gives an example of how to retrieve an argument, without having to go to the Zend API docs. Best Wishes David Gillies San Jose Costa RIca --- Andi Gutmans [EMAIL PROTECTED] wrote: Hey, What's the reason that confirm_myextension_compiled(..) takes a string as an argument? Why doesn't it just use the string myextension in it's message? For those who don't remember it prints out Congratulations! You have successfully modified ext/myextension/config.m4. Module myextension is now compiled into PHP.. The second appearance of myextension is the parameter passed to the function. Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] OpenSSL wrappers for PHP 4
Hi, I'm new to this list... Over the past few weeks I've been working on a PHP4 module, called securesocket, that wraps several of the OpenSSL routines. So far, there's about 75 routines in my module, covering essentially all of the basic routines required to perform SSL connections (support for client-oriented routines is slightly more advanced than for servers). At present there is support for connecting to a server, verifying certificates (partially), reading, writing, buffered BIOs and getting/setting SSL operating modes. My module is starting to get to the point where it is mature enough for me to consider releasing it (although it's still in a very rudimentary form). Is anyone interested in having a look at what I've done? At present I don't have access to my own publicly-accessible server. If anyone is interested in helping me host this, ideally as part of a collaborative effort using CVS, then please contact me. Best Wishes, David Gillies San Jose Costa Rica P.S. A minimal SSL session with my module might look something like the following: $ctx=securesocket_ssl_ctx_new(securesocket_sslv3_client_method()); $ssl=securesocket_ssl_new($ctx); $sock=securesocket_connect_to_host(localhost,443); securesocket_ssl_set_fd($ssl,$sock,BIO_NOCLOSE); securesocket_ssl_connect($ssl); $peer=securesocket_ssl_get_peer_certificate($ssl); $getstr=GET / HTTP/1.0\r\n\r\n; securesocket_ssl_write($ssl,$getstr,strlen($getstr)); $bytes=securesocket_ssl_read($ssl,$repstr,1024); securesocket_ssl_shutdown($ssl); securesocket_ssl_free($ssl); securesocket_ssl_ctx_free($ctx); __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php