|
Posted by Jamie on 11/19/36 11:45
Hello Newsgroup,
I'm attempting to try some stuff in PHP 4.3.2 (Old.. old version)
Basically I have something like this:
class MyClass {
function someMethod($a,$b){
echo "[$a, $b]";
}
function foot() {
// someMethod sees "Dog","Dog" ?????????????
$this->someMethod("Cat","Dog");
$file = $this->filename();
include($file);
}
}
--------------------------------------------
filename.php:
html stuff.... this gets included from the foot() method.
<?php $this->foot(); ?>
---------------------------------------------
In the above code, both $a AND $b are set to "Dog".
If I have:
someMethod($a, $b = FALSE) { }
Both $a and $b are FALSE.
The above works fine in PHP 5.n but NOT earlier versions.
I've tried other methods, sometimes they work, sometimes not
with seemingly little rhyme nor reason.
What functions, if any, are causing $a and $b to BOTH be set
to "Dog" ???
Jamie
--
http://www.geniegate.com Custom web programming
guhzo_42@lnubb.pbz (rot13) User Management Solutions
[Back to original message]
|