#43915 [Opn->Asn]: INI parser no longer allows hyphens in directive names
| From: | jani@php.net | Date: | Wed, 23 Jan 2008 11:13:29 +0000 |
| Subject: | #43915 [Opn->Asn]: INI parser no longer allows hyphens in directive names | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121476@lists.php.net to get a copy of this message | ||
ID: 43915
Updated by: jani@php.net
-Summary: INI parser no longer allows hyphens
Reported By: sfox@php.net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: irrelevant
PHP Version: 5.3CVS-2008-01-23 (CVS)
-Assigned To:
+Assigned To: jani
New Comment:
Assigning to myself, gotta check out later. The directive follow the
rule of PHP variable names: hyphen (-) is illegal in those too. But then
again, dot (.) is allowed in INI directive names. :D
Previous Comments:
------------------------------------------------------------------------
[2008-01-23 02:59:17] sfox@php.net
Description:
------------
Trying to load PHP-GTK extensions led to the discovery that we now get
a parser error (under doze, this is in the form of a message box). I
tried with a 5.3-dev from December and got a different message saying
that the hyphen is illegal syntax.
The INI directive, being for PHP-GTK, has a hyphen as part of its
extension prefix.
All works fine with current CVS for 5_2 branch.
Reproduce code:
---------------
extension=php_gtk2.dll
php-gtk.codepage=CP1250
php-gtk.extensions=php_gtk_libglade2.dll
Expected result:
----------------
Codepage used by PHP-GTK to change to CP1250, and the PHP-GTK extension
libglade to load.
Actual result:
--------------
(in a message box)
PHP Error
parse error in C:\sandbox\testarea\php.ini on line 10
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43915&edit=1