thekid Sun Feb 6 07:59:04 2005 EDT Modified files: /php-src/ext/sybase_ct/tests bug22403.phpt bug26407.phpt bug27843.phpt bug28354.phpt test_appname.phpt Log: - Prefixed all temporary names with "phpt_" http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/bug22403.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/ext/sybase_ct/tests/bug22403.phpt diff -u php-src/ext/sybase_ct/tests/bug22403.phpt:1.1 php-src/ext/sybase_ct/tests/bug22403.phpt:1.2 --- php-src/ext/sybase_ct/tests/bug22403.phpt:1.1 Fri Jan 23 21:18:13 2004 +++ php-src/ext/sybase_ct/tests/bug22403.phpt Sun Feb 6 07:59:03 2005 @@ -6,7 +6,7 @@ <?php /* This file is part of PHP test framework for ext/sybase_ct * - * $Id: bug22403.phpt,v 1.1 2004/01/24 02:18:13 thekid Exp $ + * $Id: bug22403.phpt,v 1.2 2005/02/06 12:59:03 thekid Exp $ */ require('test.inc'); @@ -16,7 +16,7 @@ error_reporting(error_reporting() & !E_NOTICE); // Suppress notices // Check if stored procedure already exists - $sp_name= basename(__FILE__, '.php'); + $sp_name= 'phpt_bug22403'; var_dump(sybase_select_db('tempdb', $db)); if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) { echo "Stored procedure {$sp_name} not found, creating\n"; http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/bug26407.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/ext/sybase_ct/tests/bug26407.phpt diff -u php-src/ext/sybase_ct/tests/bug26407.phpt:1.1 php-src/ext/sybase_ct/tests/bug26407.phpt:1.2 --- php-src/ext/sybase_ct/tests/bug26407.phpt:1.1 Fri Jan 23 21:54:33 2004 +++ php-src/ext/sybase_ct/tests/bug26407.phpt Sun Feb 6 07:59:03 2005 @@ -6,7 +6,7 @@ <?php /* This file is part of PHP test framework for ext/sybase_ct * - * $Id: bug26407.phpt,v 1.1 2004/01/24 02:54:33 thekid Exp $ + * $Id: bug26407.phpt,v 1.2 2005/02/06 12:59:03 thekid Exp $ */ require('test.inc'); @@ -14,7 +14,7 @@ $db= sybase_connect_ex(); // Create temporary table - $table= basename(__FILE__, '.php'); + $table= 'phpt_bug26407'; var_dump(sybase_query('create table #'.$table.' ( the_big_answer int )', $db)); // I @@ -67,7 +67,7 @@ >>> Query: begin transaction -- no result returned... - update #bug26407 set the_big_answer=42 + update #phpt_bug26407 set the_big_answer=42 commit <<< Return: boolean http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/bug27843.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/ext/sybase_ct/tests/bug27843.phpt diff -u php-src/ext/sybase_ct/tests/bug27843.phpt:1.2 php-src/ext/sybase_ct/tests/bug27843.phpt:1.3 --- php-src/ext/sybase_ct/tests/bug27843.phpt:1.2 Sun Feb 6 06:58:18 2005 +++ php-src/ext/sybase_ct/tests/bug27843.phpt Sun Feb 6 07:59:03 2005 @@ -6,7 +6,7 @@ <?php /* This file is part of PHP test framework for ext/sybase_ct * - * $Id: bug27843.phpt,v 1.2 2005/02/06 11:58:18 thekid Exp $ + * $Id: bug27843.phpt,v 1.3 2005/02/06 12:59:03 thekid Exp $ */ require('test.inc'); @@ -14,7 +14,7 @@ $db= sybase_connect_ex(); // Check if stored procedure already exists - $sp_name= basename(__FILE__, '.php'); + $sp_name= 'phpt_bug27843'; var_dump(sybase_select_db('tempdb', $db)); if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) { echo "Stored procedure {$sp_name} not found, creating\n"; @@ -42,7 +42,7 @@ bool(true) Stored procedure %s bool(true) ->>> Query: exec bug27843 +>>> Query: exec phpt_bug27843 <<< Return: resource array(1) { [0]=> http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/bug28354.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/ext/sybase_ct/tests/bug28354.phpt diff -u php-src/ext/sybase_ct/tests/bug28354.phpt:1.2 php-src/ext/sybase_ct/tests/bug28354.phpt:1.3 --- php-src/ext/sybase_ct/tests/bug28354.phpt:1.2 Fri May 21 16:53:01 2004 +++ php-src/ext/sybase_ct/tests/bug28354.phpt Sun Feb 6 07:59:03 2005 @@ -6,7 +6,7 @@ <?php /* This file is part of PHP test framework for ext/sybase_ct * - * $Id: bug28354.phpt,v 1.2 2004/05/21 20:53:01 thekid Exp $ + * $Id: bug28354.phpt,v 1.3 2005/02/06 12:59:03 thekid Exp $ */ require('test.inc'); @@ -16,7 +16,7 @@ error_reporting(error_reporting() & !E_NOTICE); // Suppress notices // Check if stored procedure already exists - $sp_name= basename(__FILE__, '.php'); + $sp_name= 'phpt_bug28354'; var_dump(sybase_select_db('tempdb', $db)); if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) { echo "Stored procedure {$sp_name} not found, creating\n"; http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/test_appname.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/ext/sybase_ct/tests/test_appname.phpt diff -u php-src/ext/sybase_ct/tests/test_appname.phpt:1.1 php-src/ext/sybase_ct/tests/test_appname.phpt:1.2 --- php-src/ext/sybase_ct/tests/test_appname.phpt:1.1 Fri Jan 23 21:42:26 2004 +++ php-src/ext/sybase_ct/tests/test_appname.phpt Sun Feb 6 07:59:03 2005 @@ -6,7 +6,7 @@ <?php /* This file is part of PHP test framework for ext/sybase_ct * - * $Id: test_appname.phpt,v 1.1 2004/01/24 02:42:26 thekid Exp $ + * $Id: test_appname.phpt,v 1.2 2005/02/06 12:59:03 thekid Exp $ */ require('test.inc'); @@ -19,7 +19,7 @@ } // }}} - $program_name= basename(__FILE__, '.php'); + $program_name= 'phpt_test'; $hostname= 'php.net'; ini_set('sybct.hostname', $hostname); @@ -50,7 +50,7 @@ from master..sysprocesses where - program_name = "test_appname" + program_name = "phpt_test" <<< Return: resource array(1) { [0]=> @@ -58,7 +58,7 @@ ["hostname"]=> string(10) "php.net%s" ["program_name"]=> - string(16) "test_appname%s" + string(16) "phpt_test%s" } } bool(true)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php