#22211 [Com]: Parameters not passed to class methods.
ID: 22211 Comment by: fab at blueshoes dot org Reported By: wayne at ptaff dot ca Status: Feedback Bug Type: Class/Object related Operating System: Linux PHP Version: 4.3.0 New Comment: thanks, but unfortunately it does not fix it in my case. fab Previous Comments: [2003-02-25 02:38:13] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-02-24 18:54:18] zariok at zariok dot org Unable to reproduce. I use classes extensively within a telecommunications web-based provisioning system. I have not had any issues. Environment 1: Mandrake 9.0 on 2.4ghz Intel, 512 mb Custom compile: Apache 1.3.27 PHP 4.3.0 (as module) ./configure \ --with-apxs=$APACHE_INSTALL_DIR/bin/apxs \ --enable-gd-native-ttf \ --with-ftp \ --enable-dio \ --with-openssl \ --enable-sockets \ --without-mysql \ --with-oci8=$ORACLE_HOME \ --with-xml \ --with-unixODBC=$UNIXODBC_DIR \ --enable-sigchild \ --with-readline \ --with-bz2=$BZIP2_DIR \ --with-zlib=$ZLIB_DIR \ --enable-track-vars Environment2: RedHat 8.0 SMP, Dual pIII 650, 512MB Custom Build: It would be nice to know exactly your environment and setup to replicate this issue. It would be a deep concern to me if this was actually happening, but I've been working with 4.3.0 since it was released in development and finally moved it to production when Zend released v2.6 of Zend Studio. John 'zariok' Draughn [2003-02-17 06:49:28] fab at blueshoes dot org i have something similar, i really think it's the same problem. pseudo code (not reproducable this way): class c { function f($a, $b=null, $c=TRUE) { var_dump($a); var_dump($b); var_dump($c); } } $someB = null; $someC =& new c(); $someC->f('foo', null, FALSE); the problem is that the third param ALWAYS turns out to be TRUE. no matter how many times i reload. when i remove the 2nd param from the method definition and method call then it works. system: win2000 php4.3. the code worked before in php4.2.2 really strange. but i'm not blind. should i try to provide some small peace of code that reproduces it? greetings and thanks. fab [2003-02-17 02:32:08] [EMAIL PROTECTED] Please, stop spamming other bug report with your bogus comments. Keep them here. [2003-02-13 13:03:11] wayne at ptaff dot ca Here is a strange bug affecting 4.3.0 (with the same code, 4.2.3 works fine): class foo { // constructor, etc. function myecho($string1, $string2) { echo "String 1: " . $string1 . "\n"; echo "String 2: " . $string2 . "\n"; } }; $bar = new foo(); $bar->myecho("apple", "orange"); Will output one of these 3 possibilities, at random (or so it seems:) String 1: apple String 2: orange String 1: orange String 2: String 1: String 2: Weird, eh? and rerunning the same code does not always give the same results. Reposted from bug#21886, and not related to sessions in any way. That nasty problem keeps me from upgrading... -- Edit this bug report at http://bugs.php.net/?id=22211&edit=1
#22211 [Com]: Parameters not passed to class methods.
ID: 22211 Comment by: zariok at zariok dot org Reported By: wayne at ptaff dot ca Status: Open Bug Type: Class/Object related Operating System: Linux PHP Version: 4.3.0 New Comment: Unable to reproduce. I use classes extensively within a telecommunications web-based provisioning system. I have not had any issues. Environment 1: Mandrake 9.0 on 2.4ghz Intel, 512 mb Custom compile: Apache 1.3.27 PHP 4.3.0 (as module) ./configure \ --with-apxs=$APACHE_INSTALL_DIR/bin/apxs \ --enable-gd-native-ttf \ --with-ftp \ --enable-dio \ --with-openssl \ --enable-sockets \ --without-mysql \ --with-oci8=$ORACLE_HOME \ --with-xml \ --with-unixODBC=$UNIXODBC_DIR \ --enable-sigchild \ --with-readline \ --with-bz2=$BZIP2_DIR \ --with-zlib=$ZLIB_DIR \ --enable-track-vars Environment2: RedHat 8.0 SMP, Dual pIII 650, 512MB Custom Build: It would be nice to know exactly your environment and setup to replicate this issue. It would be a deep concern to me if this was actually happening, but I've been working with 4.3.0 since it was released in development and finally moved it to production when Zend released v2.6 of Zend Studio. John 'zariok' Draughn Previous Comments: [2003-02-17 06:49:28] fab at blueshoes dot org i have something similar, i really think it's the same problem. pseudo code (not reproducable this way): class c { function f($a, $b=null, $c=TRUE) { var_dump($a); var_dump($b); var_dump($c); } } $someB = null; $someC =& new c(); $someC->f('foo', null, FALSE); the problem is that the third param ALWAYS turns out to be TRUE. no matter how many times i reload. when i remove the 2nd param from the method definition and method call then it works. system: win2000 php4.3. the code worked before in php4.2.2 really strange. but i'm not blind. should i try to provide some small peace of code that reproduces it? greetings and thanks. fab [2003-02-17 02:32:08] [EMAIL PROTECTED] Please, stop spamming other bug report with your bogus comments. Keep them here. [2003-02-13 13:03:11] wayne at ptaff dot ca Here is a strange bug affecting 4.3.0 (with the same code, 4.2.3 works fine): class foo { // constructor, etc. function myecho($string1, $string2) { echo "String 1: " . $string1 . "\n"; echo "String 2: " . $string2 . "\n"; } }; $bar = new foo(); $bar->myecho("apple", "orange"); Will output one of these 3 possibilities, at random (or so it seems:) String 1: apple String 2: orange String 1: orange String 2: String 1: String 2: Weird, eh? and rerunning the same code does not always give the same results. Reposted from bug#21886, and not related to sessions in any way. That nasty problem keeps me from upgrading... -- Edit this bug report at http://bugs.php.net/?id=22211&edit=1
#22211 [Com]: Parameters not passed to class methods.
ID: 22211 Comment by: fab at blueshoes dot org Reported By: wayne at ptaff dot ca Status: Open Bug Type: Class/Object related Operating System: Linux PHP Version: 4.3.0 New Comment: i have something similar, i really think it's the same problem. pseudo code (not reproducable this way): class c { function f($a, $b=null, $c=TRUE) { var_dump($a); var_dump($b); var_dump($c); } } $someB = null; $someC =& new c(); $someC->f('foo', null, FALSE); the problem is that the third param ALWAYS turns out to be TRUE. no matter how many times i reload. when i remove the 2nd param from the method definition and method call then it works. system: win2000 php4.3. the code worked before in php4.2.2 really strange. but i'm not blind. should i try to provide some small peace of code that reproduces it? greetings and thanks. fab Previous Comments: [2003-02-17 02:32:08] [EMAIL PROTECTED] Please, stop spamming other bug report with your bogus comments. Keep them here. [2003-02-13 13:03:11] wayne at ptaff dot ca Here is a strange bug affecting 4.3.0 (with the same code, 4.2.3 works fine): class foo { // constructor, etc. function myecho($string1, $string2) { echo "String 1: " . $string1 . "\n"; echo "String 2: " . $string2 . "\n"; } }; $bar = new foo(); $bar->myecho("apple", "orange"); Will output one of these 3 possibilities, at random (or so it seems:) String 1: apple String 2: orange String 1: orange String 2: String 1: String 2: Weird, eh? and rerunning the same code does not always give the same results. Reposted from bug#21886, and not related to sessions in any way. That nasty problem keeps me from upgrading... -- Edit this bug report at http://bugs.php.net/?id=22211&edit=1