#49343 [NEW]: Deprecated: Call-time pass-by-reference for non-object?
From: hack988 at gmail dot com Operating system: Windows 2003 SP2 PHP version: 6SVN-2009-08-24 (snap) PHP Bug Type: Scripting Engine problem Bug description: Deprecated: Call-time pass-by-reference for non-object? Description: Call-time pass-by-reference for non-object Variables is Deprecated? We can use word "new" with Call-time pass-by-value for object,but how to use pass-by-reference in Call-time for non-object Variables like int,string,array? Reproduce code: --- $a=1; $b=$a; $c=&$a; $a='cc'; tt($c); echo $b.""; echo $c.""; echo "pass by value".""; tt(&$c); echo $b.""; echo $c; function tt($aa){ $aa="erety"; } Expected result: Deprecated: Call-time pass-by-reference has been deprecated in F:\Programming\Web\php\mykernel\test\arg\fun_ref_time.php on line 11 1 cc pass by value 1 eretyPHP Deprecated: Call-time pass-by-reference has been deprecated in F:\Programming\Web\php\mykernel\test\arg\fun_ref_time.php on line 11 Actual result: -- how can i used Call-time pass-by-value for non-object Variables ? -- Edit bug report at http://bugs.php.net/?id=49343&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49343&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49343&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49343&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49343&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49343&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49343&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49343&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49343&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49343&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49343&r=support Expected behavior: http://bugs.php.net/fix.php?id=49343&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49343&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49343&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49343&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49343&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49343&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49343&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49343&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49343&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49343&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49343&r=mysqlcfg
#49474 [NEW]: use set_time_limit() trow an Warning info.
From: hack988 at gmail dot com Operating system: windows PHP version: 6SVN-2009-09-05 (snap) PHP Bug Type: Scripting Engine problem Bug description: use set_time_limit() trow an Warning info. Description: I'm test set_time_limit function with no param,it trow an warning info.I have see description in online manual: When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out. It's means this function with no param must work well. BTW:I'm test codes in php6-dev and php 5.2.9 all of them trow an warning.:( Reproduce code: --- set_time_limit(50); set_time_limit(); exit; Expected result: Warning: set_time_limit() expects exactly 1 parameter, 0 given in xxx on line 3 PHP Warning: set_time_limit() expects exactly 1 parameter, 0 given in xxx on line 3 -- Edit bug report at http://bugs.php.net/?id=49474&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49474&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49474&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49474&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49474&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49474&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49474&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49474&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49474&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49474&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49474&r=support Expected behavior: http://bugs.php.net/fix.php?id=49474&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49474&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49474&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49474&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49474&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49474&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49474&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49474&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49474&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49474&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49474&r=mysqlcfg
#41010 [NEW]: Bug #33480 still in php 4.4.6
From: hack988 at gmail dot com Operating system: win32 PHP version: 4.4.6 PHP Bug Type: *General Issues Bug description: Bug #33480 still in php 4.4.6 Description: Bug #33480 still in php 4.4.6 The dbase_add cannot use associative matrix. -- Edit bug report at http://bugs.php.net/?id=41010&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41010&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41010&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41010&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41010&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41010&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41010&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41010&r=needscript Try newer version:http://bugs.php.net/fix.php?id=41010&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41010&r=support Expected behavior:http://bugs.php.net/fix.php?id=41010&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41010&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41010&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41010&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41010&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41010&r=dst IIS Stability:http://bugs.php.net/fix.php?id=41010&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41010&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41010&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41010&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=41010&r=mysqlcfg
#41010 [NoF->Opn]: Bug #33480 still in php 4.4.6
ID: 41010 User updated by: hack988 at gmail dot com Reported By: hack988 at gmail dot com -Status: No Feedback +Status: Open Bug Type: dBase related Operating System: win32 PHP Version: 4.4.6 New Comment: This module has a mistake, You should use dbase_get_record() instead dbase_get_record_with_names(). The dbase_add and dbase_replace cannot use associative matrix. $db = dbase_open( 'test.dbf', 2 ); $record = dbase_get_record_with_names ( $db, 1); unset($record['deleted']); dbase_add_record( $db, $record ); dbase_close($db); this discription come from http://bugs.php.net/bug.php?id=33480 I test that discripted bug at php 4.4.6 it still report error use code $record=array('name'=>'hack988','from'=>'china'); dbase_add_record( $db, $record ); php still report dbase_add_record function failed but use code $record=array(0=>'hack988',1=>'china'); dbase_add_record( $db, $record ); the function dbase_add_record work will Previous Comments: [2007-04-18 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2007-04-10 14:05:26] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. -------- [2007-04-06 12:58:43] hack988 at gmail dot com Description: Bug #33480 still in php 4.4.6 The dbase_add cannot use associative matrix. -- Edit this bug report at http://bugs.php.net/?id=41010&edit=1
#41393 [NEW]: affected can't return
From: hack988 at gmail dot com Operating system: windows 2003 PHP version: 4.4.7 PHP Bug Type: MSSQL related Bug description: affected can't return Description: after executed sql query like that IF NOT EXISTS (SELECT * FROM NumberGroup WHERE (GroupName = 'rrgrrg')) INSERT INTO NumberGroup(GroupName, AddTime) VALUES ('rrgrrg', 1); an executed mssql_rows_affected alway return 0 either GroupName= 'rrgrrg' not in database Reproduce code: --- i have no idea to deal with this problem by myself Expected result: mssql_query("IF NOT EXISTS (SELECT * FROM NumberGroup WHERE (GroupName = 'rrgrrg')) INSERT INTO NumberGroup(GroupName, AddTime) VALUES ('rrgrrg', 1);"); var_dump(mssql_affected_rows($dblink); -- Edit bug report at http://bugs.php.net/?id=41393&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41393&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41393&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41393&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41393&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41393&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41393&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41393&r=needscript Try newer version:http://bugs.php.net/fix.php?id=41393&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41393&r=support Expected behavior:http://bugs.php.net/fix.php?id=41393&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41393&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41393&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41393&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41393&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41393&r=dst IIS Stability:http://bugs.php.net/fix.php?id=41393&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41393&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41393&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41393&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=41393&r=mysqlcfg