Jump to content

No warnings displayed if i reference arguments at call time for a function


Slips

Recommended Posts

Hello,

 

I was trying out some code to check out how some of the php settings work and when i tried allow_call_time_pass_reference to see if it works, it doesn't spew out any warning or error like the comments in the .ini file mention (or in the manual sites). Maybe i'm not using some other setting in order to see this? Here is my EXACT code.

 

<?php
ini_set('display_errors',1);
error_reporting(-1);


$variable = 'String';

function display($variable) {
return $variable;
}

echo display(&$variable);
?>

 

Outputs : String. No errors, no warnings.

I'm running PHP Version 5.3.2-1ubuntu4.5

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.