Re: Fw: [PHP-GTK-DEV] Re: INI problem

From: Date: Thu, 24 Jan 2008 12:10:30 +0000
Subject: Re: Fw: [PHP-GTK-DEV] Re: INI problem
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-4102@lists.php.net to get a copy of this message
Why do you change those ext/date/ directives??? And it doesn't matter if a directive is registered or not. It's perfectly valid to set any own values in php.ini. If you look at the existing tests, you'll see what I mean. :D For example: ext/standard/tests/general_functions/parse_ini_basic.data --Jani On Thu, 2008-01-24 at 12:04 +0000, Steph Fox wrote: > Hi Jani, > > OK, those GC/build fixes are in CVS now (Dmitry/Stas awake). > > Your fix + test with ext/date attached, should apply to 5_3 locally without > pain. I don't think there's any way to write a phpt test for this one > though, since there are no hyphens in the core INI directives. > > - Steph > > ----- Original Message ----- > From: "Steph Fox" <steph@zend.com> > To: <jani.taskinen@iki.fi> > Cc: "PHP-GTK dev" <php-gtk-dev@lists.php.net> > Sent: Wednesday, January 23, 2008 7:21 PM > Subject: Re: [PHP-GTK-DEV] Re: INI problem > > > > Yep, that works. Attached is a patch containing your fix + a test with > > ext/date INI directives, please don't go committing that wholesale ;) I > > just > > built it and ran ini_get_all('date'); > > > > There are also a couple of trivial ZE fixes in the patch that may or may > > not > > have been sorted by the time you get a chance to look at this. Dmitry > > aware. > > > > - Steph > > > > ----- Original Message ----- > > From: "Jani Taskinen" <jani.taskinen@sci.fi> > > To: "Steph Fox" <steph@zend.com> > > Cc: "PHP-GTK dev" <php-gtk-dev@lists.php.net> > > Sent: Wednesday, January 23, 2008 11:17 AM > > Subject: [PHP-GTK-DEV] Re: INI problem > > > > > >>I look into this once I get some free time. I'm quite busy at work right > >> now. It's simple though, you just need to allow the name have hyphen in > >> it. Propably just changing this line in zend_ini_scanner.l: > >> > >> LABEL [a-zA-Z0-9][a-zA-Z0-9._]* > >> > >> to > >> > >> LABEL [a-zA-Z0-9][a-zA-Z0-9._-]* > >> > >> No time to test right now. :) > >> > >> --Jani > >> > >> > >> On Tue, 2008-01-22 at 22:44 +0000, Steph Fox wrote: > >>> Hi all, > >>> > >>> I went to fix the shared build issue on *nix and discovered we can't > >>> load > >>> PHP-GTK extensions in 5.3.0 even under Windows. Hyphens are illegal > >>> syntax > >>> in INI directives now. (I know this because an old 5.3-dev told me so - > >>> the > >>> current message is rather less helpful, it just says 'parse error'.) > >>> > >>> Renaming our INI directives to use underscores doesn't work because the > >>> prefix needs to match the extension name... > >>> > >>> Jani, can you assist? > >>> > >>> Thanks, > >>> > >>> - Steph > >>> > >> -- > >> Patches/Donations: http://pecl.php.net/~jani/ > >> > >> -- > >> PHP-GTK Development Mailing List (http://gtk.php.net/) > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > > -- Patches/Donations: http://pecl.php.net/~jani/

« previous php.gtk.dev (#4102) next »