On Sat, 2005-01-22 at 07:38, Joseph E. Maxwell wrote:
> Hello,
> 
> I am setting up a program that requires allow_call_time_pass_reference to be 
> enabled. I've set allow_call_time_pass_reference = ON in the 
> /usr/local/etc/php.ini file
> 
> grep -n allow_call_time_pass_reference /usr/local/etc/php.ini
> 70: - allow_call_time_pass_reference = 1     [Code cleanliness]
> 167:allow_call_time_pass_reference = 1 
> 
> But the program still calls for the option to be enabled. So I have run a 
> test file with the ini_get function, the code below.
> ------code-------
>  <html>
>      <head>
>       <title>Test Page</title>
>      </head>
>      <body bgcolor=#FFFFFF text=#000000>
>     <?php echo ini_get('allow_call_time_pass_reference'); ?>
>     </body>
>     </html>
> ----end code-----
> 
> Output page ==>  blank
> 
> /usr/local/etc/php.ini has permissions set to 444 and listed in phpinfo.php
> 
> Suggestions?
> 
> Thanks!
> 

As another poster said, restarting Apache is necessary to make any
php.ini changes have any effect.

I tried your code snippet and also got a blank page. I then looked at
the ini_get function in the php manual at
http://uk.php.net/manual/en/function.ini-get.php where is says that for
boolean parameters, if they are off then either a 0 or an empty string
is returned. As you have nothing on the page, an empty string has been
returned so the value is off.

I then set allow_call_time_pass_reference to "1" in php.ini and
restarted the webserver. I got a page with "1" on it. (Using "On" is
more conventional in php.ini than "1" so I was interested to try it.

As you still get a blank page then (if you have restarted the
webserver), your value is off so it is not picking up your php.ini.
Perhaps you have it in the wrong place. Look at the output of phpinfo()
to check.

Please do not post to multiple mailing lists. I am only on this one so I
cannot see if someone on another list has answered your question and my
time is being wasted.

Regards

Chris

Reply via email to