Re: CVS ChangeLog Commentary
| From: | Zak Greant | Date: | Mon, 31 Dec 2001 18:10:44 +0000 |
| Subject: | Re: CVS ChangeLog Commentary | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-4254@lists.php.net to get a copy of this message | ||
Hello Sascha,
Thanks for the feedback!
On 2001-31-12 07:18, Sascha Schumann wrote:
> > +2001-12-30 Zak Greant <zak@jobvillage.com>
> > +
> > + * ext/standard/dir.c:
> > + chdir: corrected proto, converted to zend_parse_parameters
> > +
> > + * ext/standard/dir.c:
> > + chroot: corrected prototype, converted to zend_parse_parameters
> > +
> > + * ext/standard/basic_functions.c:
> > + Converted getenv to use zend_parse_parameters
> >
> > Relatively minor changes - unlikely to break anything, however
> > we should keep an eye on them.
>
> Btw, zend_parse_parameters is slower than the working code
> you removed.. one really should not implement
> zend_parse_parameters just because it looks nicer. Using it
> for new code is cool, while throwing out existing code is a
> somewhat deliberate decision.
I did address this before making the changes. You can review the
discussion at:
http://marc.theaimsgroup.com/?l=php-dev&m=100812201932706
I would be more than happy to revert the changes if needed.
> > Replaced a call to estrdup with a call to safe_estrdup
> > These macros are basically the same - except that safe_estrdup
> > returns an empty string if the pointer passed to safe_estrdup
> > is NULL?
> >
> > The change should do nothing other than fix the crash from the
> > attempt to duplicate a null pointer.
> >
> > (Someone with a clue about the code: Is the above synopsis
> > right? :)
>
> Yes
Thanks!
> > Additionally, there are no regression tests for this extension.
> > We may want to take a look at this... :)
>
> You might want to take a look at ext/session/tests.
Thanks!
--zak