php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16916 Ref not pass on Functions & Com's
Submitted: 2002-04-29 15:15 UTC Modified: 2002-07-07 13:15 UTC
From: shelley at databyte dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.1.2 OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2002-04-29 15:15 UTC] shelley at databyte dot com
Ref Value not being passed back. I've created this sample and it has the same results that I was having in my PHP page. I couldn't send the PHP page that I'm actually having the problem on because it doesn't DB calls etc. I also, have had this same problem on Com function that pass arguments to a vb dll. I saw on the bug search, that you other people have had this problem with the vb6 dll and that it was fixed. However, I'm having the same problem on Windows 2000 Server with Version 4.1.2 and re-download PHP in the last few weeks with all the patches.

test.php


<html>
<head>
<meta name="GENERATOR" content="Workorder Databyte">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http_equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<?
include("C:/Inetpub/wwwroot/PHP/PHPFunctions/rtest.inc");
$t=true;
$c='VarC';
mytest($t,$c);
print("<p> ".$t);
print(" ".$c);
?>
</body>
</html>

rtest.inc

<?
function mytest($t,$c) {
 
 	$c='MyRef';
 	$t=false;
 return;
}
?>

Output results after running.


X-Powered-By: PHP/4.1.0

Content-type: text/html



<html>

<head>

<meta name="GENERATOR" content="Workorder Databyte">

<meta http-equiv="pragma" content="no-cache">

<meta http-equiv="expires" content="0">

<meta http_equiv="cache-control" content="no-cache">

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

</head>

<body>

<p> 1 VarC


Thanks,
Shelley

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-29 18:27 UTC] shelley at databyte dot com
category & summary correction
 [2002-07-07 12:39 UTC] derick@php.net
Please try the latest non-stable snapshot from http://snaps.php.net and update this bugreport with the results of your problem with this new development version.

Derick
 [2002-07-07 13:15 UTC] sniper@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC