#20085 [NEW]: HTML Array variables are not working properly
From: [EMAIL PROTECTED] Operating system: Linux (¿any?) PHP version: 4.2.3 PHP Bug Type: *General Issues Bug description: HTML Array variables are not working properly form method=post action=myself.php input type=text name=myTest[] input type=text name=myTest[] /form ? echo myTest[0] -.$myTest[0].BR\n; echo myTest[1] -.$myTest[1].BR\n; ? Try run the simple script, and you'll see. The array myTest contains parts of the values of the input fields, but not the complete values. Usually works once you type numbers as input. Weird. -- Edit bug report at http://bugs.php.net/?id=20085edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20085r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20085r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20085r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20085r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20085r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=20085r=support Expected behavior: http://bugs.php.net/fix.php?id=20085r=notwrong Not enough info:http://bugs.php.net/fix.php?id=20085r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=20085r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20085r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20085r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20085r=dst IIS Stability: http://bugs.php.net/fix.php?id=20085r=isapi
#20085 [Opn]: HTML Array variables are not working properly
ID: 20085 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *General Issues Operating System: Linux (¿any?) PHP Version: 4.2.3 New Comment: Try it online at http://www.cegara.com/pruebas.php Its an apache 1.3.37 on linux. The programs using this feature have worked flawlessly since PHP3.0.2, and suddenly broke down yesterday after the PHP4.2.2-PHP4.2.3 upgrade. Previous Comments: [2002-10-25 09:31:14] [EMAIL PROTECTED] form method=post action=myself.php input type=text name=myTest[] input type=text name=myTest[] /form ? echo myTest[0] -.$myTest[0].BR\n; echo myTest[1] -.$myTest[1].BR\n; ? Try run the simple script, and you'll see. The array myTest contains parts of the values of the input fields, but not the complete values. Usually works once you type numbers as input. Weird. -- Edit this bug report at http://bugs.php.net/?id=20085edit=1
#20085 [Opn]: HTML Array variables are not working properly
ID: 20085 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *General Issues Operating System: Linux (¿any?) PHP Version: 4.2.3 New Comment: excuse me.. http://www.cegara.com/prueba.php Previous Comments: [2002-10-25 09:35:01] [EMAIL PROTECTED] Try it online at http://www.cegara.com/pruebas.php Its an apache 1.3.37 on linux. The programs using this feature have worked flawlessly since PHP3.0.2, and suddenly broke down yesterday after the PHP4.2.2-PHP4.2.3 upgrade. [2002-10-25 09:31:14] [EMAIL PROTECTED] form method=post action=myself.php input type=text name=myTest[] input type=text name=myTest[] /form ? echo myTest[0] -.$myTest[0].BR\n; echo myTest[1] -.$myTest[1].BR\n; ? Try run the simple script, and you'll see. The array myTest contains parts of the values of the input fields, but not the complete values. Usually works once you type numbers as input. Weird. -- Edit this bug report at http://bugs.php.net/?id=20085edit=1
#19519 [Opn-Csd]: Lost object variables during execution of a register_shutdown_function
ID: 19519 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: Windows 2000 PHP Version: 4.2.3 New Comment: sorry!!! there is just a '' needed: $d = new B('/path/to/logs/debugger.messages'); Previous Comments: [2002-09-20 04:20:21] [EMAIL PROTECTED] I'm running php4.2.3 on apache/1.3.24(w2k) as a module. This are my two classes: (Explanations see below) ? class A { function init() { register_shutdown_function(array($this, 'flush')); } function flush() { if(sizeof($this-logs) 0) { /* Write it to a file */ } } } class B extends A { function B($file) { $this-file = $file; $this-init(); } function log($msg) { $this-logs[] = $msg; } } $d = new B('/path/to/logs/debugger.messages'); $d-log('text one'); $d-log('text ten'); ? I would like to call the flush()-method on shutdown that the logs could be written to file. So I register it in the init()-method with register_shutdown_function(array($this, 'flush')) and the init()-method is called from the constructor of class B. I expected that the $this-logs array would be available and I could write it to a file. But the variable was always empty and the sizeof() returns 0. Do I call the flush()-method manually at the end of the script, everything works like expected. Every variable set in the constructor B(), like $this-file, is available in the flush()-method called by the registered shutdown function. Every variable set later does not exist. Is that a bug? or just misscoding... -- Edit this bug report at http://bugs.php.net/?id=19519edit=1
#19519 [NEW]: Lost object variables during execution of a register_shutdown_function
From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.2.3 PHP Bug Type: Scripting Engine problem Bug description: Lost object variables during execution of a register_shutdown_function I'm running php4.2.3 on apache/1.3.24(w2k) as a module. This are my two classes: (Explanations see below) ? class A { function init() { register_shutdown_function(array($this, 'flush')); } function flush() { if(sizeof($this-logs) 0) { /* Write it to a file */ } } } class B extends A { function B($file) { $this-file = $file; $this-init(); } function log($msg) { $this-logs[] = $msg; } } $d = new B('/path/to/logs/debugger.messages'); $d-log('text one'); $d-log('text ten'); ? I would like to call the flush()-method on shutdown that the logs could be written to file. So I register it in the init()-method with register_shutdown_function(array($this, 'flush')) and the init()-method is called from the constructor of class B. I expected that the $this-logs array would be available and I could write it to a file. But the variable was always empty and the sizeof() returns 0. Do I call the flush()-method manually at the end of the script, everything works like expected. Every variable set in the constructor B(), like $this-file, is available in the flush()-method called by the registered shutdown function. Every variable set later does not exist. Is that a bug? or just misscoding... -- Edit bug report at http://bugs.php.net/?id=19519edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19519r=trysnapshot Fixed in CVS:http://bugs.php.net/fix.php?id=19519r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=19519r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19519r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19519r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19519r=support Expected behavior: http://bugs.php.net/fix.php?id=19519r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19519r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19519r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=19519r=globals