#26785 [Com]: session_set_save_handler -- gc() arguments
ID: 26785 Comment by: dsimic at urc dot bl dot ac dot yu dot NOSPAM Reported By: dsimic at urc dot bl dot ac dot yu Status: Bogus Bug Type: Session related Operating System: Linux PHP Version: 4.3.4 New Comment: I'll try that in the next seven days, and will report the results. Previous Comments: [2004-01-13 05:22:11] [EMAIL PROTECTED] Try the latest stable CVS snapshot, this works fine with it. (from http://snaps.php.net) If you still claim to be able to reproduce this, provide a complete but short example script. [2004-01-13 03:48:34] dsimic at urc dot bl dot ac dot yu dot NOSPAM I've also triple checked, and there is nothing wrong I'm doing, as I've also tried an absolutely stripped down version of the test; and I still get "Missing argument..." error when I leave _sessiongc() with one argument. [2004-01-06 18:19:45] [EMAIL PROTECTED] You're doing something very wrong. The function definately REQUIRES one parameter. (works fine for me) [2004-01-04 13:44:15] dsimic at urc dot bl dot ac dot yu Description: While implementing my own user--level database--based session handling class, found a *weird* thing: As stated in oficial PHP documentation on this page, rough--shaped garbage collecting function looks like: function gc ($maxlifetime) { return true; } But I found that this function should have *NO* arguments! While having one argument, error message was like this: Warning: Missing argument 1 for _sessiongc() in on line I removed any arguments for this PHP function, and finally ended with this rough--shaped gc function, which works: function gc() { $maxlifetime = ini_get ('session.gc_maxlifetime'); return true; } I even looked around in php-4.3.4/ext/session/mod_user.c but as I'm not a PHP engine developer, coudn't find any obvious cause of this. -- Edit this bug report at http://bugs.php.net/?id=26785&edit=1
#26785 [Bgs->Opn]: session_set_save_handler -- gc() arguments
ID: 26785 User updated by: dsimic at urc dot bl dot ac dot yu dot NOSPAM Reported By: dsimic at urc dot bl dot ac dot yu dot NOSPAM -Status: Bogus +Status: Open Bug Type: Session related Operating System: Linux PHP Version: 4.3.4 New Comment: I consider this as still open? Previous Comments: [2004-01-13 03:48:34] dsimic at urc dot bl dot ac dot yu dot NOSPAM I've also triple checked, and there is nothing wrong I'm doing, as I've also tried an absolutely stripped down version of the test; and I still get "Missing argument..." error when I leave _sessiongc() with one argument. [2004-01-06 18:19:45] [EMAIL PROTECTED] You're doing something very wrong. The function definately REQUIRES one parameter. (works fine for me) ---- [2004-01-04 13:44:15] dsimic at urc dot bl dot ac dot yu dot NOSPAM Description: While implementing my own user--level database--based session handling class, found a *weird* thing: As stated in oficial PHP documentation on this page, rough--shaped garbage collecting function looks like: function gc ($maxlifetime) { return true; } But I found that this function should have *NO* arguments! While having one argument, error message was like this: Warning: Missing argument 1 for _sessiongc() in on line I removed any arguments for this PHP function, and finally ended with this rough--shaped gc function, which works: function gc() { $maxlifetime = ini_get ('session.gc_maxlifetime'); return true; } I even looked around in php-4.3.4/ext/session/mod_user.c but as I'm not a PHP engine developer, coudn't find any obvious cause of this. -- Edit this bug report at http://bugs.php.net/?id=26785&edit=1
#26785 [Bgs]: session_set_save_handler -- gc() arguments
ID: 26785 User updated by: dsimic at urc dot bl dot ac dot yu dot NOSPAM Reported By: dsimic at urc dot bl dot ac dot yu dot NOSPAM Status: Bogus Bug Type: Session related Operating System: Linux PHP Version: 4.3.4 New Comment: I've also triple checked, and there is nothing wrong I'm doing, as I've also tried an absolutely stripped down version of the test; and I still get "Missing argument..." error when I leave _sessiongc() with one argument. Previous Comments: [2004-01-06 18:19:45] [EMAIL PROTECTED] You're doing something very wrong. The function definately REQUIRES one parameter. (works fine for me) ---- [2004-01-04 13:44:15] dsimic at urc dot bl dot ac dot yu dot NOSPAM Description: While implementing my own user--level database--based session handling class, found a *weird* thing: As stated in oficial PHP documentation on this page, rough--shaped garbage collecting function looks like: function gc ($maxlifetime) { return true; } But I found that this function should have *NO* arguments! While having one argument, error message was like this: Warning: Missing argument 1 for _sessiongc() in on line I removed any arguments for this PHP function, and finally ended with this rough--shaped gc function, which works: function gc() { $maxlifetime = ini_get ('session.gc_maxlifetime'); return true; } I even looked around in php-4.3.4/ext/session/mod_user.c but as I'm not a PHP engine developer, coudn't find any obvious cause of this. -- Edit this bug report at http://bugs.php.net/?id=26785&edit=1
#26785 [NEW]: session_set_save_handler -- gc() arguments
From: dsimic at urc dot bl dot ac dot yu dot NOSPAM Operating system: Linux PHP version: 4.3.4 PHP Bug Type: Session related Bug description: session_set_save_handler -- gc() arguments Description: While implementing my own user--level database--based session handling class, found a *weird* thing: As stated in oficial PHP documentation on this page, rough--shaped garbage collecting function looks like: function gc ($maxlifetime) { return true; } But I found that this function should have *NO* arguments! While having one argument, error message was like this: Warning: Missing argument 1 for _sessiongc() in on line I removed any arguments for this PHP function, and finally ended with this rough--shaped gc function, which works: function gc() { $maxlifetime = ini_get ('session.gc_maxlifetime'); return true; } I even looked around in php-4.3.4/ext/session/mod_user.c but as I'm not a PHP engine developer, coudn't find any obvious cause of this. -- Edit bug report at http://bugs.php.net/?id=26785&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26785&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26785&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26785&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26785&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26785&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26785&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26785&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=26785&r=support Expected behavior: http://bugs.php.net/fix.php?id=26785&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=26785&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=26785&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26785&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26785&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26785&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26785&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=26785&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26785&r=float