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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.