Sure.  When I set
        #define DEBUG_CFG_PARSER 1
in zend_ini_parser.y, I see lots of:

'short_open_tag' = '1'
'asp_tags' = ''
...

output to stderr when PHP starts.  I believe that this is the bison parser
discovering statements from the php.ini file.

When I run the php from the command line, it outputs these statements just
once.  However, when I run php as an apache module, it outputs these
statements once, then it outputs

Apache/1.3.23 (Win32) PHP/4.3.0-dev running...

then it outputs all the statements again.  What I don't understand is why it
happens a second time.

thanks

dave


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 4:35 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] ini question


Can you provide some context?

Devon

Original Message:
-----------------
From: David Viner [EMAIL PROTECTED]
Date: Thu, 19 Sep 2002 16:16:18 -0700
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] ini question


After some further tweaking and fprintf-ing, it appears that the second
round of parser print-outs somehow do not rely upon the lexer in
zend_ini_scanner.l.  So I am completely unsure of what is going on.

Is there any documentation that I should read to help me understand this?
(I own and have examined the OReilly Writing Apache Modules book (in case
this was the child processes each parsing the ini file on their own) but to
no avail.)  Is there Zend documentation of the startup process?

dave


-----Original Message-----
From: David Viner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 3:45 PM
To: Php-Dev@lists. php. net
Subject: [PHP-DEV] ini question


Hi,
        I turned on DEBUG_CFG_PARSER in Zend/zend_ini_parser.y which has the parser
spit out each key-value pair it discovers.  I noticed when I start my
Apache, it actually spits everything out twice.  The first time I know comes
from php_module_startup (called from php_apache_startup which is the init
handler in sapi/apache/mod_php4.c).  What causes the parser to spit out all
the key-value pairs the second time?


dave


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to