[PHP-CVS-DAILY] cvs: php-src / ChangeLog
changelog Fri Jul 3 01:33:12 2009 UTC Modified files: /php-srcChangeLog Log: ChangeLog update http://cvs.php.net/viewvc.cgi/php-src/ChangeLog?r1=1.3452r2=1.3453diff_format=u Index: php-src/ChangeLog diff -u php-src/ChangeLog:1.3452 php-src/ChangeLog:1.3453 --- php-src/ChangeLog:1.3452Thu Jul 2 01:33:27 2009 +++ php-src/ChangeLog Fri Jul 3 01:33:11 2009 @@ -1,3 +1,215 @@ +2009-07-02 Stanislav Malyshev s...@zend.com + +* ext/intl/locale/locale_methods.c + ext/intl/locale/locale_methods.c: + bugfix + +2009-07-02 Kalle Sommer Nielsen kalle@gmail.com + +* NEWS: + As Jani would say; Fix NEWS + +2009-07-02 Ilia Alshanetsky i...@prohost.org + +* (PHP_5_3) + NEWS + ext/curl/interface.c + ext/curl/interface.c: + + MFB: Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR + warns + on files that have been opened with r+). + +* (PHP_5_2) + NEWS + ext/curl/interface.c: + + Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on +files that have been opened with r+). + +2009-07-02 Lukas Smith sm...@pooteeweet.org + +* (PHP_5_3) + php.ini-development + php.ini-production: + MFH: removed references to track_vars, since this option doesnt exist since + ages + +* php.ini-development + php.ini-production: + removed references to track_vars, since this option doesnt exist since ages + +2009-07-02 Ulf Wendel ulf.wen...@phpdoc.de + +* (PHP_5_3) + ext/mysql/tests/002.phpt + ext/mysql/tests/003.phpt + ext/mysql/tests/bug47438.phpt + ext/mysql/tests/clean_table.inc + ext/mysql/tests/mysql_affected_rows.phpt + ext/mysql/tests/mysql_create_db.phpt + ext/mysql/tests/mysql_data_seek.phpt + ext/mysql/tests/mysql_db_query.phpt + ext/mysql/tests/mysql_drop_db.phpt + ext/mysql/tests/mysql_errno.phpt + ext/mysql/tests/mysql_error.phpt + ext/mysql/tests/mysql_fetch_array.phpt + ext/mysql/tests/mysql_fetch_assoc.phpt + ext/mysql/tests/mysql_fetch_field.phpt + ext/mysql/tests/mysql_fetch_lengths.phpt + ext/mysql/tests/mysql_fetch_object.phpt + ext/mysql/tests/mysql_fetch_row.phpt + ext/mysql/tests/mysql_field_flags.phpt + ext/mysql/tests/mysql_field_len.phpt + ext/mysql/tests/mysql_field_name.phpt + ext/mysql/tests/mysql_field_seek.phpt + ext/mysql/tests/mysql_field_table.phpt + ext/mysql/tests/mysql_field_type.phpt + ext/mysql/tests/mysql_free_result.phpt + ext/mysql/tests/mysql_get_host_info.phpt + ext/mysql/tests/mysql_get_proto_info.phpt + ext/mysql/tests/mysql_get_server_info.phpt + ext/mysql/tests/mysql_info.phpt + ext/mysql/tests/mysql_insert_id.phpt + ext/mysql/tests/mysql_list_dbs.phpt + ext/mysql/tests/mysql_list_fields.phpt + ext/mysql/tests/mysql_list_tables.phpt + ext/mysql/tests/mysql_max_persistent.phpt + ext/mysql/tests/mysql_num_fields.phpt + ext/mysql/tests/mysql_num_rows.phpt + ext/mysql/tests/mysql_pconn_disable.phpt + ext/mysql/tests/mysql_pconn_kill.phpt + ext/mysql/tests/mysql_pconn_max_links.phpt + ext/mysql/tests/mysql_ping.phpt + ext/mysql/tests/mysql_query.phpt + ext/mysql/tests/mysql_result.phpt + ext/mysql/tests/mysql_trace_mode.phpt + ext/mysql/tests/mysql_unbuffered_query.phpt: + MFH. Adding CLEAN sections, fixing some SKIPIF sections. Cool new + run-tests.php, Zoe (and other) - its a great help to detect stinky SKIPIF + and CLEAN + +2009-07-02 Gwynne Raskind gwy...@darkrainfall.org + +* (PHP_5_3) + ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt: + call-time pass-by-reference is deprecated in 5.3 + +2009-07-02 Ulf Wendel ulf.wen...@phpdoc.de + +* ext/mysql/tests/002.phpt + ext/mysql/tests/003.phpt + ext/mysql/tests/bug47438.phpt + ext/mysql/tests/clean_table.inc + ext/mysql/tests/clean_table.inc + ext/mysql/tests/mysql_affected_rows.phpt + ext/mysql/tests/mysql_create_db.phpt + ext/mysql/tests/mysql_data_seek.phpt + ext/mysql/tests/mysql_db_query.phpt + ext/mysql/tests/mysql_drop_db.phpt + ext/mysql/tests/mysql_errno.phpt + ext/mysql/tests/mysql_error.phpt + ext/mysql/tests/mysql_fetch_array.phpt + ext/mysql/tests/mysql_fetch_assoc.phpt + ext/mysql/tests/mysql_fetch_field.phpt + ext/mysql/tests/mysql_fetch_lengths.phpt + ext/mysql/tests/mysql_fetch_object.phpt + ext/mysql/tests/mysql_fetch_row.phpt + ext/mysql/tests/mysql_field_flags.phpt + ext/mysql/tests/mysql_field_len.phpt + ext/mysql/tests/mysql_field_name.phpt + ext/mysql/tests/mysql_field_seek.phpt + ext/mysql/tests/mysql_field_table.phpt + ext/mysql/tests/mysql_field_type.phpt + ext/mysql/tests/mysql_free_result.phpt +
[PHP-CVS] cvs: php-src /ext/mysql/tests mysql_list_fields.phpt
uw Thu Jul 2 07:42:34 2009 UTC Modified files: /php-src/ext/mysql/testsmysql_list_fields.phpt Log: Test for bug #48754 http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/mysql_list_fields.phpt?r1=1.4r2=1.5diff_format=u Index: php-src/ext/mysql/tests/mysql_list_fields.phpt diff -u php-src/ext/mysql/tests/mysql_list_fields.phpt:1.4 php-src/ext/mysql/tests/mysql_list_fields.phpt:1.5 --- php-src/ext/mysql/tests/mysql_list_fields.phpt:1.4 Wed Oct 10 10:56:33 2007 +++ php-src/ext/mysql/tests/mysql_list_fields.phpt Thu Jul 2 07:42:34 2009 @@ -1,8 +1,8 @@ --TEST-- mysql_list_fields() --SKIPIF-- -?php -require_once('skipif.inc'); +?php +require_once('skipif.inc'); require_once('skipifconnectfailure.inc'); ? --FILE-- @@ -21,8 +21,20 @@ if (!$res = mysql_list_fields($db, 'test', $link)) printf([003] [%d] %s\n, mysql_errno($link), mysql_error($link)); -if (!($num = mysql_num_fields($res))) - printf([004] Empty field list? [%d] %s\n, mysql_errno($link), mysql_error($link)); +if (2 !== ($num = mysql_num_fields($res))) + printf([004] Expecting two fields, got %d. [%d] %s\n, $num, mysql_errno($link), mysql_error($link)); + +mysql_free_result($res); + +if (!mysql_query(DROP TABLE IF EXISTS test2, $link) || + !mysql_query(CREATE TABLE test2(id INT), $link)) + printf([005] [%d] %s\n, mysql_errno($link), mysql_error($link)); + +if (!$res = mysql_list_fields($db, 'test%', $link)) + printf([006] [%d] %s\n, mysql_errno($link), mysql_error($link)); + +if (3 !== ($num = mysql_num_fields($res))) + printf([007] Expecting 3 fields from test and test2, got %d. [%d] %s\n, $num, mysql_errno($link), mysql_error($link)); mysql_free_result($res); mysql_close($link); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/mysql/tests mysql_list_fields.phpt
uw Thu Jul 2 07:42:49 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/mysql/testsmysql_list_fields.phpt Log: MFH - Test for bug #48754 http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/mysql_list_fields.phpt?r1=1.3.2.2r2=1.3.2.3diff_format=u Index: php-src/ext/mysql/tests/mysql_list_fields.phpt diff -u php-src/ext/mysql/tests/mysql_list_fields.phpt:1.3.2.2 php-src/ext/mysql/tests/mysql_list_fields.phpt:1.3.2.3 --- php-src/ext/mysql/tests/mysql_list_fields.phpt:1.3.2.2 Wed Oct 10 09:56:47 2007 +++ php-src/ext/mysql/tests/mysql_list_fields.phpt Thu Jul 2 07:42:48 2009 @@ -1,8 +1,8 @@ --TEST-- mysql_list_fields() --SKIPIF-- -?php -require_once('skipif.inc'); +?php +require_once('skipif.inc'); require_once('skipifconnectfailure.inc'); ? --FILE-- @@ -21,8 +21,20 @@ if (!$res = mysql_list_fields($db, 'test', $link)) printf([003] [%d] %s\n, mysql_errno($link), mysql_error($link)); -if (!($num = mysql_num_fields($res))) - printf([004] Empty field list? [%d] %s\n, mysql_errno($link), mysql_error($link)); +if (2 !== ($num = mysql_num_fields($res))) + printf([004] Expecting two fields, got %d. [%d] %s\n, $num, mysql_errno($link), mysql_error($link)); + +mysql_free_result($res); + +if (!mysql_query(DROP TABLE IF EXISTS test2, $link) || + !mysql_query(CREATE TABLE test2(id INT), $link)) + printf([005] [%d] %s\n, mysql_errno($link), mysql_error($link)); + +if (!$res = mysql_list_fields($db, 'test%', $link)) + printf([006] [%d] %s\n, mysql_errno($link), mysql_error($link)); + +if (3 !== ($num = mysql_num_fields($res))) + printf([007] Expecting 3 fields from test and test2, got %d. [%d] %s\n, $num, mysql_errno($link), mysql_error($link)); mysql_free_result($res); mysql_close($link); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src/testrun rtPhpTestRun.php
zoe Thu Jul 2 09:24:14 2009 UTC Modified files: /phpruntests/src/testrunrtPhpTestRun.php Log: check for help and h on command line http://cvs.php.net/viewvc.cgi/phpruntests/src/testrun/rtPhpTestRun.php?r1=1.18r2=1.19diff_format=u Index: phpruntests/src/testrun/rtPhpTestRun.php diff -u phpruntests/src/testrun/rtPhpTestRun.php:1.18 phpruntests/src/testrun/rtPhpTestRun.php:1.19 --- phpruntests/src/testrun/rtPhpTestRun.php:1.18 Thu Jul 2 09:22:11 2009 +++ phpruntests/src/testrun/rtPhpTestRun.phpThu Jul 2 09:24:14 2009 @@ -32,7 +32,7 @@ $runConfiguration-configure(); //Check help message -if($runConfiguration-hasCommandLineOption('help')) { +if($runConfiguration-hasCommandLineOption('help') || $runConfiguration-hasCommandLineOption('h')) { echo rtText::get('help'); exit; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src/testrun rtPhpTestRun.php
zoe Thu Jul 2 09:22:12 2009 UTC Modified files: /phpruntests/src/testrunrtPhpTestRun.php Log: check help option http://cvs.php.net/viewvc.cgi/phpruntests/src/testrun/rtPhpTestRun.php?r1=1.17r2=1.18diff_format=u Index: phpruntests/src/testrun/rtPhpTestRun.php diff -u phpruntests/src/testrun/rtPhpTestRun.php:1.17 phpruntests/src/testrun/rtPhpTestRun.php:1.18 --- phpruntests/src/testrun/rtPhpTestRun.php:1.17 Tue Jun 30 15:39:51 2009 +++ phpruntests/src/testrun/rtPhpTestRun.phpThu Jul 2 09:22:11 2009 @@ -30,6 +30,12 @@ $runConfiguration = rtRuntestsConfiguration::getInstance($this-commandLineArguments); $runConfiguration-getUserEnvironment(); $runConfiguration-configure(); + +//Check help message +if($runConfiguration-hasCommandLineOption('help')) { +echo rtText::get('help'); +exit; +} //Check the preconditions $preConditionList = rtPreConditionList::getInstance(); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: phpruntests /src/texts help.txt
zoe Thu Jul 2 09:21:55 2009 UTC Modified files: /phpruntests/src/texts help.txt Log: update help text http://cvs.php.net/viewvc.cgi/phpruntests/src/texts/help.txt?r1=1.1.1.1r2=1.2diff_format=u Index: phpruntests/src/texts/help.txt diff -u phpruntests/src/texts/help.txt:1.1.1.1 phpruntests/src/texts/help.txt:1.2 --- phpruntests/src/texts/help.txt:1.1.1.1 Wed Apr 15 16:30:18 2009 +++ phpruntests/src/texts/help.txt Thu Jul 2 09:21:54 2009 @@ -2,64 +2,17 @@ php run-tests.php [options] [files] [directories] Options: --l file Read the testfiles to be executed from file. After the test -has finished all failed tests are written to the same file. -If the list is empty and no further test is specified then -all tests are executed (same as: -r file -w file). - --r file Read the testfiles to be executed from file. - --w file Write a list of all failed tests to file. - --a file Same as -w but append rather then truncating file. - --c file Look for php.ini in directory file or use file as ini. - --n Pass -n option to the php binary (Do not use a php.ini). - --d foo=bar Pass -d option to the php binary (Define INI entry foo -with value 'bar'). - --m Test for memory leaks with Valgrind. - + -p phpSpecify PHP executable to run. --q Quiet, no user interaction (same as environment NO_INTERACTION). - --s file Write output to file. - --x Sets 'SKIP_SLOW_TESTS' environmental variable. - ---verbose --v Verbose mode. +-o list|csv|xmlOutput format + +-z nproc Run in parallel. Only if pcntl enabled. --help -h This Help. ---html file Generate HTML output. - ---temp-source sdir --temp-target tdir [--temp-urlbase url] -Write temporary files to tdir by replacing sdir from the -filenames to generate with tdir. If --html is being used and -url given then the generated links are relative and prefixed -with the given url. In general you want to make sdir the path -to your source files and tdir some pach in your web page -hierarchy with url pointing to tdir. - --keep-[all|php|skip|clean] Do not delete 'all' files, 'php' test file, 'skip' or 'clean' file. ---set-timeout [n] -Set timeout for individual tests, where [n] is the number of -seconds. The default value is 60 seconds, or 300 seconds when -testing for memory leaks. - ---show-[all|php|skip|clean|exp|diff|out] -Show 'all' files, 'php' test file, 'skip' or 'clean' file. You -can also use this to show the output 'out', the expected result -'exp' or the difference between them 'diff'. The result types -get written independent of the log format, however 'diff' only -exists when a test fails. - ---no-clean Do not execute clean section if any. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/gd/tests jpeg2wbmp_error1.phpt
gwynne Thu Jul 2 10:02:38 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/gd/tests jpeg2wbmp_error1.phpt Log: Fixed a stray 'in the test http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/jpeg2wbmp_error1.phpt?r1=1.1.2.3r2=1.1.2.4diff_format=u Index: php-src/ext/gd/tests/jpeg2wbmp_error1.phpt diff -u php-src/ext/gd/tests/jpeg2wbmp_error1.phpt:1.1.2.3 php-src/ext/gd/tests/jpeg2wbmp_error1.phpt:1.1.2.4 --- php-src/ext/gd/tests/jpeg2wbmp_error1.phpt:1.1.2.3 Wed Jul 1 02:32:55 2009 +++ php-src/ext/gd/tests/jpeg2wbmp_error1.phpt Thu Jul 2 10:02:38 2009 @@ -29,7 +29,7 @@ imagedestroy($im); jpeg2wbmp($file, $file2, 20, 120, 9); -jpeg2wbmp($file', $file2, 20, 120, -1); +jpeg2wbmp($file, $file2, 20, 120, -1); ? --EXPECTF-- Warning: jpeg2wbmp(): Invalid threshold value '9' in %s on line %d -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/pcntl/tests bug47566.phpt
gwynne Thu Jul 2 10:03:15 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/pcntl/testsbug47566.phpt Log: Don't use short tags in tests http://cvs.php.net/viewvc.cgi/php-src/ext/pcntl/tests/bug47566.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u Index: php-src/ext/pcntl/tests/bug47566.phpt diff -u php-src/ext/pcntl/tests/bug47566.phpt:1.1.2.2 php-src/ext/pcntl/tests/bug47566.phpt:1.1.2.3 --- php-src/ext/pcntl/tests/bug47566.phpt:1.1.2.2 Tue May 26 14:01:39 2009 +++ php-src/ext/pcntl/tests/bug47566.phpt Thu Jul 2 10:03:14 2009 @@ -3,7 +3,7 @@ --SKIPIF-- ?php if (!extension_loaded(pcntl)) print skip; ? --FILE-- -? +?php $pid = pcntl_fork(); if ($pid == -1) { echo Unable to fork; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/mysql/tests 002.phpt 003.phpt bug47438.phpt clean_table.inc mysql_affected_rows.phpt mysql_create_db.phpt mysql_data_seek.phpt mysql_db_query.phpt mysql_drop_db.phpt mysql_
uw Thu Jul 2 10:04:26 2009 UTC Added files: /php-src/ext/mysql/testsclean_table.inc Modified files: /php-src/ext/mysql/tests002.phpt 003.phpt bug47438.phpt mysql_affected_rows.phpt mysql_create_db.phpt mysql_data_seek.phpt mysql_db_query.phpt mysql_drop_db.phpt mysql_errno.phpt mysql_error.phpt mysql_fetch_array.phpt mysql_fetch_assoc.phpt mysql_fetch_field.phpt mysql_fetch_lengths.phpt mysql_fetch_object.phpt mysql_fetch_row.phpt mysql_field_flags.phpt mysql_field_len.phpt mysql_field_name.phpt mysql_field_seek.phpt mysql_field_table.phpt mysql_field_type.phpt mysql_free_result.phpt mysql_get_host_info.phpt mysql_get_proto_info.phpt mysql_get_server_info.phpt mysql_info.phpt mysql_insert_id.phpt mysql_list_dbs.phpt mysql_list_fields.phpt mysql_list_tables.phpt mysql_max_persistent.phpt mysql_num_fields.phpt mysql_num_rows.phpt mysql_pconn_disable.phpt mysql_pconn_kill.phpt mysql_pconn_max_links.phpt mysql_ping.phpt mysql_query.phpt mysql_result.phpt mysql_trace_mode.phpt mysql_unbuffered_query.phpt Log: Adding CLEAN sections, fixing some SKIPIF sections. Cool new run-tests.php, Zoe (and other) - its a great help to detect stinky SKIPIF and CLEAN http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/002.phpt?r1=1.5r2=1.6diff_format=u Index: php-src/ext/mysql/tests/002.phpt diff -u php-src/ext/mysql/tests/002.phpt:1.5 php-src/ext/mysql/tests/002.phpt:1.6 --- php-src/ext/mysql/tests/002.phpt:1.5Wed Jul 1 15:31:32 2009 +++ php-src/ext/mysql/tests/002.phptThu Jul 2 10:04:25 2009 @@ -32,6 +32,10 @@ print done!; ? +--CLEAN-- +?php +require_once(clean_table.inc); +? --EXPECTF-- resource(%d) of type (mysql link) bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/003.phpt?r1=1.5r2=1.6diff_format=u Index: php-src/ext/mysql/tests/003.phpt diff -u php-src/ext/mysql/tests/003.phpt:1.5 php-src/ext/mysql/tests/003.phpt:1.6 --- php-src/ext/mysql/tests/003.phpt:1.5Wed Jul 1 15:31:32 2009 +++ php-src/ext/mysql/tests/003.phptThu Jul 2 10:04:25 2009 @@ -52,6 +52,10 @@ mysql_close($link); print done!; ? +--CLEAN-- +?php +require_once(clean_table.inc); +? --EXPECTF-- ==stdClass== object(stdClass)#%d (1) { http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/bug47438.phpt?r1=1.2r2=1.3diff_format=u Index: php-src/ext/mysql/tests/bug47438.phpt diff -u php-src/ext/mysql/tests/bug47438.phpt:1.2 php-src/ext/mysql/tests/bug47438.phpt:1.3 --- php-src/ext/mysql/tests/bug47438.phpt:1.2 Thu Feb 19 12:13:47 2009 +++ php-src/ext/mysql/tests/bug47438.phpt Thu Jul 2 10:04:25 2009 @@ -16,7 +16,7 @@ mysql_select_db($db, $link); mysql_query(DROP TABLE IF EXISTS test_47438, $link); mysql_query(CREATE TABLE test_47438 (a INT, b INT, c INT), $link); -mysql_query(INSERT INTO test_47438 VALUES (10, 11, 12), (20, 21, 22), $link); +mysql_query(INSERT INTO test_47438 VALUES (10, 11, 12), (20, 21, 22), $link); $result = mysql_query(SELECT * FROM test_47438, $link); mysql_field_seek($result, 1); @@ -32,6 +32,20 @@ mysql_query(DROP TABLE IF EXISTS test_47438, $link); ? +--CLEAN-- +?php +require_once('connect.inc'); + +if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) +printf([c001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n, +$host, $user, $db, $port, $socket); + +if (!mysql_select_db($db, $link) || + !mysql_query(DROP TABLE IF EXISTS test_47438, $link)) + printf([c002] [%d] %s\n, mysql_errno($link), mysql_error($link)); + +mysql_close($link); +? --EXPECT-- 0.a 1.b http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/mysql_affected_rows.phpt?r1=1.5r2=1.6diff_format=u Index: php-src/ext/mysql/tests/mysql_affected_rows.phpt diff -u php-src/ext/mysql/tests/mysql_affected_rows.phpt:1.5 php-src/ext/mysql/tests/mysql_affected_rows.phpt:1.6 --- php-src/ext/mysql/tests/mysql_affected_rows.phpt:1.5Fri Nov 28
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/pdo_mysql/tests pdo_mysql_fetch_both.phpt
gwynne Thu Jul 2 10:05:15 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/pdo_mysql/testspdo_mysql_fetch_both.phpt Log: call-time pass-by-reference is deprecated in 5.3 http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u Index: php-src/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt diff -u php-src/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt:1.1.2.2 php-src/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt:1.1.2.3 --- php-src/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt:1.1.2.2 Mon Jul 21 13:09:28 2008 +++ php-src/ext/pdo_mysql/tests/pdo_mysql_fetch_both.phpt Thu Jul 2 10:05:15 2009 @@ -49,7 +49,7 @@ try { - fetch(2, $db, 'SELECT 1', array(0 = '1', '1' = '1')); + fetch(2, $db, 'SELECT 1', array(0 = '1', '1' = '1')); } catch (PDOException $e) { printf([001] %s [%s] %s\n, -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/mysql/tests 002.phpt 003.phpt bug47438.phpt clean_table.inc mysql_affected_rows.phpt mysql_create_db.phpt mysql_data_seek.phpt mysql_db_query.phpt mysql_drop_db.ph
uw Thu Jul 2 10:05:37 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/mysql/testsclean_table.inc Modified files: /php-src/ext/mysql/tests002.phpt 003.phpt bug47438.phpt mysql_affected_rows.phpt mysql_create_db.phpt mysql_data_seek.phpt mysql_db_query.phpt mysql_drop_db.phpt mysql_errno.phpt mysql_error.phpt mysql_fetch_array.phpt mysql_fetch_assoc.phpt mysql_fetch_field.phpt mysql_fetch_lengths.phpt mysql_fetch_object.phpt mysql_fetch_row.phpt mysql_field_flags.phpt mysql_field_len.phpt mysql_field_name.phpt mysql_field_seek.phpt mysql_field_table.phpt mysql_field_type.phpt mysql_free_result.phpt mysql_get_host_info.phpt mysql_get_proto_info.phpt mysql_get_server_info.phpt mysql_info.phpt mysql_insert_id.phpt mysql_list_dbs.phpt mysql_list_fields.phpt mysql_list_tables.phpt mysql_max_persistent.phpt mysql_num_fields.phpt mysql_num_rows.phpt mysql_pconn_disable.phpt mysql_pconn_kill.phpt mysql_pconn_max_links.phpt mysql_ping.phpt mysql_query.phpt mysql_result.phpt mysql_trace_mode.phpt mysql_unbuffered_query.phpt Log: MFH. Adding CLEAN sections, fixing some SKIPIF sections. Cool new run-tests.php, Zoe (and other) - its a great help to detect stinky SKIPIF and CLEAN http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/002.phpt?r1=1.1.8.3r2=1.1.8.4diff_format=u Index: php-src/ext/mysql/tests/002.phpt diff -u php-src/ext/mysql/tests/002.phpt:1.1.8.3 php-src/ext/mysql/tests/002.phpt:1.1.8.4 --- php-src/ext/mysql/tests/002.phpt:1.1.8.3Wed Jul 1 15:33:31 2009 +++ php-src/ext/mysql/tests/002.phptThu Jul 2 10:05:36 2009 @@ -32,6 +32,10 @@ print done!; ? +--CLEAN-- +?php +require_once(clean_table.inc); +? --EXPECTF-- resource(%d) of type (mysql link) bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/003.phpt?r1=1.1.8.3r2=1.1.8.4diff_format=u Index: php-src/ext/mysql/tests/003.phpt diff -u php-src/ext/mysql/tests/003.phpt:1.1.8.3 php-src/ext/mysql/tests/003.phpt:1.1.8.4 --- php-src/ext/mysql/tests/003.phpt:1.1.8.3Wed Jul 1 15:33:31 2009 +++ php-src/ext/mysql/tests/003.phptThu Jul 2 10:05:36 2009 @@ -52,6 +52,10 @@ mysql_close($link); print done!; ? +--CLEAN-- +?php +require_once(clean_table.inc); +? --EXPECTF-- ==stdClass== object(stdClass)#%d (1) { http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/bug47438.phpt?r1=1.1.2.3r2=1.1.2.4diff_format=u Index: php-src/ext/mysql/tests/bug47438.phpt diff -u php-src/ext/mysql/tests/bug47438.phpt:1.1.2.3 php-src/ext/mysql/tests/bug47438.phpt:1.1.2.4 --- php-src/ext/mysql/tests/bug47438.phpt:1.1.2.3 Thu Feb 19 12:13:50 2009 +++ php-src/ext/mysql/tests/bug47438.phpt Thu Jul 2 10:05:36 2009 @@ -16,7 +16,7 @@ mysql_select_db($db, $link); mysql_query(DROP TABLE IF EXISTS test_47438, $link); mysql_query(CREATE TABLE test_47438 (a INT, b INT, c INT), $link); -mysql_query(INSERT INTO test_47438 VALUES (10, 11, 12), (20, 21, 22), $link); +mysql_query(INSERT INTO test_47438 VALUES (10, 11, 12), (20, 21, 22), $link); $result = mysql_query(SELECT * FROM test_47438, $link); mysql_field_seek($result, 1); @@ -32,6 +32,20 @@ mysql_query(DROP TABLE IF EXISTS test_47438, $link); ? +--CLEAN-- +?php +require_once('connect.inc'); + +if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) +printf([c001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n, +$host, $user, $db, $port, $socket); + +if (!mysql_select_db($db, $link) || + !mysql_query(DROP TABLE IF EXISTS test_47438, $link)) + printf([c002] [%d] %s\n, mysql_errno($link), mysql_error($link)); + +mysql_close($link); +? --EXPECT-- 0.a 1.b http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/mysql_affected_rows.phpt?r1=1.3.2.4r2=1.3.2.5diff_format=u Index: php-src/ext/mysql/tests/mysql_affected_rows.phpt diff -u php-src/ext/mysql/tests/mysql_affected_rows.phpt:1.3.2.4
[PHP-CVS] cvs: phpruntests /src/testcase rtPhpTest.php
zoe Thu Jul 2 10:22:59 2009 UTC Modified files: /phpruntests/src/testcase rtPhpTest.php Log: reverting changes to test parser http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/rtPhpTest.php?r1=1.12r2=1.13diff_format=u Index: phpruntests/src/testcase/rtPhpTest.php diff -u phpruntests/src/testcase/rtPhpTest.php:1.12 phpruntests/src/testcase/rtPhpTest.php:1.13 --- phpruntests/src/testcase/rtPhpTest.php:1.12 Wed Jul 1 20:15:41 2009 +++ phpruntests/src/testcase/rtPhpTest.php Thu Jul 2 10:22:59 2009 @@ -40,40 +40,29 @@ */ public function parse() { - -for ($sectionCount = 0; $sectionCount count ($this-sectionHeadings) -1 ; $sectionCount++) { - -$sectionKey = $this-sectionHeadings[$sectionCount]; -$nextSectionKey = $this-sectionHeadings[$sectionCount + 1]; -$tempArray = array(); - -$contentPointer = 0; -for ($i=0; $icount($this-contents); $i++) { -if($this-contents[$i] == $sectionKey) { -for ($j=$i+1; $jcount($this-contents); $j++) { -if ($this-contents[$j] == $nextSectionKey || stripos($this-contents[$j], ===done===) !== false) { -if(stripos($this-contents[$j], ===done===) !== false) { -$tempArray[] = trim($this-contents[$j]); -} - -$testSection = rtSection::getInstance($sectionKey, $tempArray); -$this-sections[$sectionKey] = $testSection; -$contentPointer = $j; -break; +for ($i=0; $icount($this-contents); $i++) { +//Create an array of section objects +if ($this-isSectionKey($this-contents[$i])) { +$sectionKey = $this-contents[$i]; + +$tempArray = array(); +for ($j=$i+1; $jcount($this-contents); $j++) { + +if ($this-isSectionKey($this-contents[$j]) || stripos($this-contents[$j], ===done===) !== false) { +if(stripos($this-contents[$j], ===done===) !== false) { +$tempArray[] = trim($this-contents[$j]); } -$tempArray[] = $this-contents[$j]; +$testSection = rtSection::getInstance($sectionKey, $tempArray); +$this-sections[$sectionKey] = $testSection; +break; } +$tempArray[] = $this-contents[$j]; } } } - -$tempArray = array(); -for ($k = $contentPointer +1; $k count($this-contents); $k++) { -$tempArray[] = $this-contents[$k]; -} -$testSection = rtSection::getInstance($nextSectionKey, $tempArray); -$this-sections[$nextSectionKey] = $testSection; +$testSection = rtSection::getInstance($sectionKey, $tempArray); +$this-sections[$sectionKey] = $testSection; //Identify the file and expect section types @@ -82,23 +71,23 @@ $this-fileSection-setExecutableFileName($this-getName()); } - + /** * Initialises the configuration for this test. Uses the configuration sections from teh test case - * + * * @param rtRunTEstsConfiuration $runConfiguration - * + * */ public function init(rtRuntestsConfiguration $runConfiguration) { $this-testConfiguration = new rtTestConfiguration($runConfiguration, $this-sections, $this-sectionHeadings, $this-fileSection); } - + /** * Executes the test case - * + * * @param rtRunTEstsConfiuration $runConfiguration */ public function executeTest(rtRuntestsConfiguration $runConfiguration) @@ -130,7 +119,7 @@ /** * Test the output against the expect section - * + * */ public function compareOutput() { @@ -143,10 +132,10 @@ } } - + /** * Test the expected headers against actual headers. Only relevant for CGI tests. - * + * */ public function compareHeaders() { @@ -159,10 +148,10 @@ } } - + /** * Identify a section heading - * + * */ private function isSectionKey($line) { @@ -191,7 +180,7 @@ } } - + /** * Sets the test's expect section */ @@ -234,9 +223,9 @@ { return $this-sections[$sectionKey]; } - + /* - * Return the object containing all test status + * Return the object containing all test status */ public function getStatus() { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src / php.ini-development php.ini-production
On 30.06.2009, at 11:57, Hannes Magnusson wrote: On Tue, Jun 30, 2009 at 11:15, Jani Taskinenjani.taski...@sci.fi wrote: Hannes Magnusson wrote: bjori Tue Jun 30 08:49:05 2009 UTC Modified files: /php-srcphp.ini-production php.ini-development Log: MFB5.3: Add missing ini entries (Mikko) http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.12r2=1.13diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.12 php-src/php.ini-production: 1.13 --- php-src/php.ini-production:1.12 Sun Jun 28 17:55:36 2009 +++ php-src/php.ini-production Tue Jun 30 08:49:05 2009 @@ -641,7 +641,7 @@ ; Data Handling ; ; -; Note - track_vars is ALWAYS enabled as of PHP 4.0.3 +; Note - track_vars is ALWAYS enabled Isn't that note kinda useless anyway. I don't even know what that track_vars is supposed to be..some PHP 3 thing? Good point. We should probably remove it before 5.3.1 You mean marking it deprecated and removing it in PHP 6.0? Seems sensible to me. regards, Lukas Kahwe Smith m...@pooteeweet.org -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src / php.ini-development php.ini-production
On Thu, 2 Jul 2009, Lukas Kahwe Smith wrote: On 30.06.2009, at 11:57, Hannes Magnusson wrote: On Tue, Jun 30, 2009 at 11:15, Jani Taskinenjani.taski...@sci.fi wrote: Hannes Magnusson wrote: bjori Tue Jun 30 08:49:05 2009 UTC Modified files: /php-srcphp.ini-production php.ini-development Log: MFB5.3: Add missing ini entries (Mikko) http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.12r2=1.13diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.12 php-src/php.ini-production:1.13 --- php-src/php.ini-production:1.12 Sun Jun 28 17:55:36 2009 +++ php-src/php.ini-production Tue Jun 30 08:49:05 2009 @@ -641,7 +641,7 @@ ; Data Handling ; ; -; Note - track_vars is ALWAYS enabled as of PHP 4.0.3 +; Note - track_vars is ALWAYS enabled Isn't that note kinda useless anyway. I don't even know what that track_vars is supposed to be..some PHP 3 thing? Good point. We should probably remove it before 5.3.1 You mean marking it deprecated and removing it in PHP 6.0? Seems sensible to me. This setting is *long* gone, it can just be removed. regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-CVS] cvs: php-src / php.ini-development php.ini-production
On 02.07.2009, at 14:48, Derick Rethans wrote: On Thu, 2 Jul 2009, Lukas Kahwe Smith wrote: On 30.06.2009, at 11:57, Hannes Magnusson wrote: On Tue, Jun 30, 2009 at 11:15, Jani Taskinenjani.taski...@sci.fi wrote: Hannes Magnusson wrote: bjori Tue Jun 30 08:49:05 2009 UTC Modified files: /php-srcphp.ini-production php.ini-development Log: MFB5.3: Add missing ini entries (Mikko) http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.12r2=1.13diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.12 php-src/php.ini- production:1.13 --- php-src/php.ini-production:1.12 Sun Jun 28 17:55:36 2009 +++ php-src/php.ini-production Tue Jun 30 08:49:05 2009 @@ -641,7 +641,7 @@ ; Data Handling ; ; -; Note - track_vars is ALWAYS enabled as of PHP 4.0.3 +; Note - track_vars is ALWAYS enabled Isn't that note kinda useless anyway. I don't even know what that track_vars is supposed to be..some PHP 3 thing? Good point. We should probably remove it before 5.3.1 You mean marking it deprecated and removing it in PHP 6.0? Seems sensible to me. This setting is *long* gone, it can just be removed. Ah, great. I got confused by the docs: http://ch.php.net/manual/en/ini.core.php#ini.track-vars Note that as of PHP 4.0.3, track_vars is always turned on. The entry on http://ch.php.net/manual/en/ini.list.php is a bit cleaer: track_vars 1 PHP_INI_ALL Removed in PHP 4.0.3. regards, Lukas Kahwe Smith m...@pooteeweet.org -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src / php.ini-development php.ini-production
lsmith Thu Jul 2 13:34:29 2009 UTC Modified files: /php-srcphp.ini-development php.ini-production Log: removed references to track_vars, since this option doesnt exist since ages http://cvs.php.net/viewvc.cgi/php-src/php.ini-development?r1=1.14r2=1.15diff_format=u Index: php-src/php.ini-development diff -u php-src/php.ini-development:1.14 php-src/php.ini-development:1.15 --- php-src/php.ini-development:1.14Tue Jun 30 08:49:05 2009 +++ php-src/php.ini-development Thu Jul 2 13:34:29 2009 @@ -22,7 +22,7 @@ ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though -; they might mean something in the future. +; they might mean something in the future. ; Directives following the section heading [PATH=/www/mysite] only ; apply to PHP files in the /www/mysite directory. Directives @@ -437,11 +437,11 @@ ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI -max_execution_time = 30 +max_execution_time = 30 ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly -; long running scripts. +; long running scripts. ; Note: This directive is hardcoded to -1 for the CLI SAPI ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) @@ -521,8 +521,8 @@ ; It's recommended that errors be logged on production servers rather than ; having the errors sent to STDOUT. ; Possible Values: -; Off = Do not display any errors -; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) +; Off = Do not display any errors +; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) ; On or stdout = Display errors to STDOUT ; Default Value: On ; Development Value: On @@ -641,8 +641,6 @@ ; Data Handling ; ; -; Note - track_vars is ALWAYS enabled - ; The separator used in PHP generated URLs to separate arguments. ; PHP's default setting is . ; http://php.net/arg-separator.output @@ -674,7 +672,7 @@ ; be registered into the super global array REQUEST. If so, it also determines ; the order in which that data is registered. The values for this directive are ; specified in the same manner as the variables_order directive, EXCEPT one. -; Leaving this value empty will cause PHP to use the value set in the +; Leaving this value empty will cause PHP to use the value set in the ; variables_order directive. It does not mean it will leave the super globals ; array REQUEST empty. ; Default Value: None @@ -685,9 +683,7 @@ ; Whether or not to register the EGPCS variables as global variables. You may ; want to turn this off if you don't want to clutter your scripts' global scope -; with user data. This makes most sense when coupled with track_vars - in which -; case you can access all of the GPC variables through the $HTTP_*_VARS[], -; variables. +; with user data. ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. @@ -944,7 +940,7 @@ ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) ; extension folders as well as the separate PECL DLL download (PHP 5). ; Be sure to appropriately set the extension_dir directive. -; +; ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_dba.dll @@ -1021,7 +1017,7 @@ ;iconv.output_encoding = ISO-8859-1 [intl] -;intl.default_locale = +;intl.default_locale = [sqlite] ; http://php.net/sqlite.assoc-case @@ -1035,9 +1031,9 @@ ; http://php.net/pcre.backtrack-limit ;pcre.backtrack_limit=10 -;PCRE library recursion limit. -;Please note that if you set this value to a high number you may consume all -;the available process stack and eventually crash PHP (due to reaching the +;PCRE library recursion limit. +;Please note that if you set this value to a high number you may consume all +;the available process stack and eventually crash PHP (due to reaching the ;stack size limit imposed by the Operating System). ; http://php.net/pcre.recursion-limit ;pcre.recursion_limit=10 @@ -1115,7 +,7 @@ ; http://php.net/odbc.default-pw ;odbc.default_pw= Not yet implemented -; Controls the ODBC cursor model. +; Controls the ODBC cursor model. ; Default: SQL_CURSOR_STATIC (default). ;odbc.default_cursortype @@ -1501,7 +1497,7 @@ ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. ; http://php.net/session.cookie-httponly -session.cookie_httponly = +session.cookie_httponly = ; Handler
[PHP-CVS] cvs: php-src(PHP_5_3) / php.ini-development php.ini-production
lsmith Thu Jul 2 13:34:38 2009 UTC Modified files: (Branch: PHP_5_3) /php-srcphp.ini-production php.ini-development Log: MFH: removed references to track_vars, since this option doesnt exist since ages http://cvs.php.net/viewvc.cgi/php-src/php.ini-production?r1=1.1.2.14r2=1.1.2.15diff_format=u Index: php-src/php.ini-production diff -u php-src/php.ini-production:1.1.2.14 php-src/php.ini-production:1.1.2.15 --- php-src/php.ini-production:1.1.2.14 Sun Jun 28 17:56:18 2009 +++ php-src/php.ini-production Thu Jul 2 13:34:38 2009 @@ -22,7 +22,7 @@ ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though -; they might mean something in the future. +; they might mean something in the future. ; Directives following the section heading [PATH=/www/mysite] only ; apply to PHP files in the /www/mysite directory. Directives @@ -437,11 +437,11 @@ ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI -max_execution_time = 30 +max_execution_time = 30 ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly -; long running scripts. +; long running scripts. ; Note: This directive is hardcoded to -1 for the CLI SAPI ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) @@ -521,8 +521,8 @@ ; It's recommended that errors be logged on production servers rather than ; having the errors sent to STDOUT. ; Possible Values: -; Off = Do not display any errors -; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) +; Off = Do not display any errors +; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) ; On or stdout = Display errors to STDOUT ; Default Value: On ; Development Value: On @@ -641,8 +641,6 @@ ; Data Handling ; ; -; Note - track_vars is ALWAYS enabled - ; The separator used in PHP generated URLs to separate arguments. ; PHP's default setting is . ; http://php.net/arg-separator.output @@ -674,7 +672,7 @@ ; be registered into the super global array REQUEST. If so, it also determines ; the order in which that data is registered. The values for this directive are ; specified in the same manner as the variables_order directive, EXCEPT one. -; Leaving this value empty will cause PHP to use the value set in the +; Leaving this value empty will cause PHP to use the value set in the ; variables_order directive. It does not mean it will leave the super globals ; array REQUEST empty. ; Default Value: None @@ -685,9 +683,7 @@ ; Whether or not to register the EGPCS variables as global variables. You may ; want to turn this off if you don't want to clutter your scripts' global scope -; with user data. This makes most sense when coupled with track_vars - in which -; case you can access all of the GPC variables through the $HTTP_*_VARS[], -; variables. +; with user data. ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. @@ -944,7 +940,7 @@ ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) ; extension folders as well as the separate PECL DLL download (PHP 5). ; Be sure to appropriately set the extension_dir directive. -; +; ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_dba.dll @@ -1021,7 +1017,7 @@ ;iconv.output_encoding = ISO-8859-1 [intl] -;intl.default_locale = +;intl.default_locale = [sqlite] ; http://php.net/sqlite.assoc-case @@ -1035,9 +1031,9 @@ ; http://php.net/pcre.backtrack-limit ;pcre.backtrack_limit=10 -;PCRE library recursion limit. -;Please note that if you set this value to a high number you may consume all -;the available process stack and eventually crash PHP (due to reaching the +;PCRE library recursion limit. +;Please note that if you set this value to a high number you may consume all +;the available process stack and eventually crash PHP (due to reaching the ;stack size limit imposed by the Operating System). ; http://php.net/pcre.recursion-limit ;pcre.recursion_limit=10 @@ -1115,7 +,7 @@ ; http://php.net/odbc.default-pw ;odbc.default_pw= Not yet implemented -; Controls the ODBC cursor model. +; Controls the ODBC cursor model. ; Default: SQL_CURSOR_STATIC (default). ;odbc.default_cursortype @@ -1509,7 +1505,7 @@ ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. ; http://php.net/session.cookie-httponly -session.cookie_httponly =
[PHP-CVS] cvs: php-src(PHP_5_2) / NEWS /ext/curl interface.c
iliaa Thu Jul 2 13:41:29 2009 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/curl interface.c /php-srcNEWS Log: Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on files that have been opened with r+). http://cvs.php.net/viewvc.cgi/php-src/ext/curl/interface.c?r1=1.62.2.14.2.58r2=1.62.2.14.2.59diff_format=u Index: php-src/ext/curl/interface.c diff -u php-src/ext/curl/interface.c:1.62.2.14.2.58 php-src/ext/curl/interface.c:1.62.2.14.2.59 --- php-src/ext/curl/interface.c:1.62.2.14.2.58 Sun Jun 28 10:00:28 2009 +++ php-src/ext/curl/interface.cThu Jul 2 13:41:29 2009 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: interface.c,v 1.62.2.14.2.58 2009/06/28 10:00:28 pajoye Exp $ */ +/* $Id: interface.c,v 1.62.2.14.2.59 2009/07/02 13:41:29 iliaa Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -1436,7 +1436,7 @@ error = CURLE_OK; switch (option) { case CURLOPT_FILE: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { zend_list_addref(Z_LVAL_PP(zvalue)); ch-handlers-write-fp = fp; ch-handlers-write-method = PHP_CURL_FILE; @@ -1447,7 +1447,7 @@ } break; case CURLOPT_WRITEHEADER: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { zend_list_addref(Z_LVAL_PP(zvalue)); ch-handlers-write_header-fp = fp; ch-handlers-write_header-method = PHP_CURL_FILE; @@ -1463,7 +1463,7 @@ ch-handlers-read-fd = Z_LVAL_PP(zvalue); break; case CURLOPT_STDERR: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { if (ch-handlers-std_err) { zval_ptr_dtor(ch-handlers-std_err); } http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1576r2=1.2027.2.547.2.1577diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1576 php-src/NEWS:1.2027.2.547.2.1577 --- php-src/NEWS:1.2027.2.547.2.1576Wed Jul 1 18:46:53 2009 +++ php-src/NEWSThu Jul 2 13:41:29 2009 @@ -4,6 +4,8 @@ - Fixed regression in cURL extension that prevented flush of data to output defined as a file handle. (Ilia) +- Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on + files that have been opened with r+). (Ilia) - Fixed bug #48709 (metaphone and 'wh'). (brettz9 at yahoo dot com, Felipe) - Fixed bug #48693 (Double declaration of __lambda_func when lambda wrongly formatted). (peter at lvp-media dot com, Felipe) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) / NEWS /ext/curl interface.c
iliaa Thu Jul 2 13:42:16 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/curl interface.c /php-srcNEWS Log: MFB: Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on files that have been opened with r+). http://cvs.php.net/viewvc.cgi/php-src/ext/curl/interface.c?r1=1.62.2.14.2.27.2.58r2=1.62.2.14.2.27.2.59diff_format=u Index: php-src/ext/curl/interface.c diff -u php-src/ext/curl/interface.c:1.62.2.14.2.27.2.58 php-src/ext/curl/interface.c:1.62.2.14.2.27.2.59 --- php-src/ext/curl/interface.c:1.62.2.14.2.27.2.58Sun Jun 28 09:50:14 2009 +++ php-src/ext/curl/interface.cThu Jul 2 13:42:16 2009 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: interface.c,v 1.62.2.14.2.27.2.58 2009/06/28 09:50:14 pajoye Exp $ */ +/* $Id: interface.c,v 1.62.2.14.2.27.2.59 2009/07/02 13:42:16 iliaa Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -1649,7 +1649,7 @@ error = CURLE_OK; switch (option) { case CURLOPT_FILE: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { zend_list_addref(Z_LVAL_PP(zvalue)); ch-handlers-write-fp = fp; ch-handlers-write-method = PHP_CURL_FILE; @@ -1660,7 +1660,7 @@ } break; case CURLOPT_WRITEHEADER: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { zend_list_addref(Z_LVAL_PP(zvalue)); ch-handlers-write_header-fp = fp; ch-handlers-write_header-method = PHP_CURL_FILE; @@ -1676,7 +1676,7 @@ ch-handlers-read-fd = Z_LVAL_PP(zvalue); break; case CURLOPT_STDERR: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { if (ch-handlers-std_err) { zval_ptr_dtor(ch-handlers-std_err); } http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.661r2=1.2027.2.547.2.965.2.662diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.965.2.661 php-src/NEWS:1.2027.2.547.2.965.2.662 --- php-src/NEWS:1.2027.2.547.2.965.2.661 Wed Jul 1 17:38:52 2009 +++ php-src/NEWSThu Jul 2 13:42:16 2009 @@ -6,6 +6,8 @@ Functors. (Christian Seiler) - Fixed bug #48757 (ReflectionFunction::invoke() parameter issues). (Kalle) +- Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on + files that have been opened with r+). (Ilia) - Fixed bug #48681 (openssl signature verification for tar archives broken). (Greg) - Fixed bug #47351 (Memory leak in DateTime). (Derick, Tobias John) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/curl interface.c
iliaa Thu Jul 2 13:42:24 2009 UTC Modified files: /php-src/ext/curl interface.c Log: MFB: Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on files that have been opened with r+). http://cvs.php.net/viewvc.cgi/php-src/ext/curl/interface.c?r1=1.174r2=1.175diff_format=u Index: php-src/ext/curl/interface.c diff -u php-src/ext/curl/interface.c:1.174 php-src/ext/curl/interface.c:1.175 --- php-src/ext/curl/interface.c:1.174 Sat Jun 27 21:20:25 2009 +++ php-src/ext/curl/interface.cThu Jul 2 13:42:24 2009 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: interface.c,v 1.174 2009/06/27 21:20:25 pajoye Exp $ */ +/* $Id: interface.c,v 1.175 2009/07/02 13:42:24 iliaa Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -1665,7 +1665,7 @@ error = CURLE_OK; switch (option) { case CURLOPT_FILE: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { zend_list_addref(Z_LVAL_PP(zvalue)); ch-handlers-write-fp = fp; ch-handlers-write-method = PHP_CURL_FILE; @@ -1676,7 +1676,7 @@ } break; case CURLOPT_WRITEHEADER: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { zend_list_addref(Z_LVAL_PP(zvalue)); ch-handlers-write_header-fp = fp; ch-handlers-write_header-method = PHP_CURL_FILE; @@ -1692,7 +1692,7 @@ ch-handlers-read-fd = Z_LVAL_PP(zvalue); break; case CURLOPT_STDERR: - if (((php_stream *) what)-mode[0] != 'r') { + if (((php_stream *) what)-mode[0] != 'r' || ((php_stream *) what)-mode[1] == '+') { if (ch-handlers-std_err) { zval_ptr_dtor(ch-handlers-std_err); } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src / NEWS
kalle Thu Jul 2 17:24:55 2009 UTC Modified files: /php-srcNEWS Log: As Jani would say; Fix NEWS http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2184r2=1.2185diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2184 php-src/NEWS:1.2185 --- php-src/NEWS:1.2184 Sun Jun 28 15:41:25 2009 +++ php-src/NEWSThu Jul 2 17:24:55 2009 @@ -45,5 +45,5 @@ - Added stream_resolve_include_path() function which checks which file fopen() with a relative path will open. (Sara) -- Fixed bug #40325 (Vary: header missing in gzip output handlers). (Mike) - Fixed bug #46647 (SplFileObject::fgetcsv segfaults). (Etienne) +- Fixed bug #40325 (Vary: header missing in gzip output handlers). (Mike) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: CVSROOT / avail
philip Thu Jul 2 20:02:12 2009 UTC Modified files: /CVSROOTavail Log: - phpdoc karma for Peter Beverloo (beverloo) http://cvs.php.net/viewvc.cgi/CVSROOT/avail?r1=1.1542r2=1.1543diff_format=u Index: CVSROOT/avail diff -u CVSROOT/avail:1.1542 CVSROOT/avail:1.1543 --- CVSROOT/avail:1.1542Wed Jul 1 03:08:45 2009 +++ CVSROOT/avail Thu Jul 2 20:02:12 2009 @@ -41,7 +41,7 @@ # The PHP Documentation Group maintains the documentation and its # translations. -avail|mgdm,lucas,jmertic,bobby,takagi,gcc,cem,mfp,ansriniv,jsgoupil,mazzanet,frogger,coldocean,fleaslob,torben,lynch,kk,ted,paul,mbritton,bibi,mrobinso,perugini,tzwenny,drews,paulsen,hartmann,leon,jonen,tschuer,tfromm,manuel,danbeck,sli,jmcastagnetto,mohrt,samesch,soneca,ronabop,glace,latoserver,rafael,jcmeloni,chrullrich,mk,troels,mathieu,phaethon,mj,corean,pandach,cycle98,vizvil,regina,cynic,jpm,dams,karoora,pcraft,suvia,zimt,ftfuture,ag315,bbonev,afortaleza,neotron,cg,delrom,jkj,hellekin,kgergely,cnewbill,fuzzy74,bjoern,fams,smasiello,dim,lucasr,cpereira,ernani,theseer,noribsd,subjective,ufux,hadar_p,asautins,dbenson,aleczapka,tom,amiller,cortesi,rarruda,betz,alindeman,thyla,cucinato,zyprexia,tpug,mitja,conni,sts,nmav,subbie,leszek,spheroid,slawek,alan_dangelo,ae,nohn,kaser01,visualmind,kurtz,luk,tronic,moh,gerzson,webler,spooky,cece,daniel,boo,nhoizey,joerg,hakan,chief977,shlomi,raful,yuval,tomer,barak,ido,mork,lior,gal,adiju,cr_depend,florian,kappu,muricaru,dt,critix,c! k,costra,fancao0515,tibee,eriksson,wenz,bs,anderson,matroz,ave,adu,mmeier,wentzel,scaro,aspinei,lmaxcar,manuzhai,darvina,peter,maxim,romakhin,n0nick,attila,sagi,kai,microbrain,rhheo,shimi,djworld,emil,lboshell,netholic,dmitry83,progcom,verdana,yincheng,surfmax,nicos,bbd,cyril,gregory,hudzilla,klean,mignoni,wiesemann,xqi,mersal,zruya,sean,staybyte,aber_sabeel,alzahrani,thomaslio,jippie,antonio,ahxiao,akcakayaa,allhibi,aner,black,class007,digo,dima,dorons,eshare,hpop1,itay,juppie,mrmatrix,saad,thomasgm,xbite,tobsn,jome,analytik,outsider,heymarcel,asmodean,bader,elmaystro,sp,truelight,gnuhacker,_batman_,sachat,dallas,dejan,zer0fill,steve3d,lm92,bradmssw,tahani,victor,erica,simonh,phpman,mrphp,notarius,joseph,mmkhajah,mohammed,proton,klootz,takashima,leoca,ahmad,abobader,fboudot,wurm,hakawy,felix,ahmedss,mahrous2020,yorgo,gal_ga,abodive,ama,andras,hassen,jkhdk,okamura,popov,xman,fernandoc,avenger,hwin,tix,alrehawi_,liuming,ramysaweres,astone,shiflett,jaenecke,bdensley,adamchan,! jingfs,murphy,potatotsang,the_q,jsheets,xelis,equerci,phpcatala,tofani ni,umut,kriga,ray,royhuggins,logician,almanar,alexws,gonik,haiaw,lkwang_cn,shadowwulf,telecart,pongsakorn,naveed,shivas,tularis,angela,decorj,hitcho,kevinkee,nmee,thx1140,crotalus,didou,novotnyr,sil,traduim,gui,mgf,ivanr,michal,tsirman,momo,cysoft,firefox,kouber,mipac,muslem,tomysk,vemarkov,garth,lord_lele,stone,laacz,retnug,ernestyang,hatem,house,luisdaniel,nizar,nvivo,seth,tomh,danguer,adam,nio,wassago,beeven,colacino,zvaranka,cesarguru,chubu,dark2907,portoban,reven,wizzard,sywr,koendw83,rylin,webstudio,jsjohnst,dmanusset,et,pitiphan,mbr,cdalar,alrashoudi,hafid,enough,zhouhao007,jnorbi,lorenzohgh,denisr,coder03,jcclaros,thomas,freeman,rioter,jschultz,davey,belleto,jtacon,yuw,elfyn,noam,nathan,salman,cheezy,ene,rezaiqbal,purnomo,dufiga_php,ftp_geo,udhien,prio,luckyguy354,maf,handi,meme,satiri,maddankara,rildo,hd,ali,lpj,adhitama,engkongs,preilly,dave,marcelo,curt,fd,javi,mrmaster,fa,vrana,apaxx,pjotrik,marduk,narcotia1234,enloma,trizo,xmadda,redshift,alifikri,coder,dodol_ma! niac,eflorin,adywarna,kyokpae,milans,lovchy,spermwhale,phaze,baoengb,derek,yannick,daan,xxiengb,ott,mg,kennyt,tomsommer,poz,zamolxe,bishmila,ph1,irchtml,rogamer,bortolini,sapfir,guru,ahmed,robinhood,sohli,amt,romain,hlecuanda,thessoro,nforbes,jolan,laze,bagilevi,young,shakaali,chokobo,portalufpa,teecee,blindman,holst,schst,mnv,sodhi,aidan,jellybob,lauer,shenkong,jad,robert,peterhuewe,ogre,techtonik,narigone,realtebo,krid,mclay,dasch,miwaniec,abdshomad,sammywg,aeoris,mez,jed,hsc,luckec,dmytton,choudesh,phpvcn,simp,michael,grantc,atex,katja,sthulbourn,mikl,kevinsz,roast,tessus,gavinfo,rant,ramsey,arkadius,erinet,omar,oliver,rquadling,timo,shadda,joeaccord,ezyang,ljbuesch,knut,asonge,ron,nicobn,jacques,void,mcbrown,simionea,preinheimer,stanprog,msaraujo,asbjornit,philippe,sezer,rmlr,hradtke,alan,danielc,danbrown,alexxed,psalehpoor,loudi,abedford,morgue,nilgun,saltybeagle,dedemorton,eniac2008,jawed,ch,ericstewart,mager,keito,juxecl,salathe,chx,vito|phpdoc,phpdoc-ar,phpdoc-bg,ph! pdoc-cs,phpdoc-da,phpdoc-de,phpdoc-el,phpdoc-es,phpdoc-fa,phpdoc-fi,ph pdoc-fr,phpdoc-he,phpdoc-hk,phpdoc-hu,phpdoc-id,phpdoc-it,phpdoc-ja,phpdoc-kr,phpdoc-lt,phpdoc-nl,phpdoc-pl,phpdoc-pt_BR,phpdoc-pt,phpdoc-ro,phpdoc-ru,phpdoc-sk,phpdoc-sl,phpdoc-sv,phpdoc-tr,phpdoc-tw,phpdoc-zh,phpdoc-ca,phpdoc-no,phd,docweb,doc-editor
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/intl/locale locale_methods.c
stasThu Jul 2 22:36:16 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/intl/localelocale_methods.c Log: bugfix http://cvs.php.net/viewvc.cgi/php-src/ext/intl/locale/locale_methods.c?r1=1.1.2.10r2=1.1.2.11diff_format=u Index: php-src/ext/intl/locale/locale_methods.c diff -u php-src/ext/intl/locale/locale_methods.c:1.1.2.10 php-src/ext/intl/locale/locale_methods.c:1.1.2.11 --- php-src/ext/intl/locale/locale_methods.c:1.1.2.10 Thu Jul 2 00:43:26 2009 +++ php-src/ext/intl/locale/locale_methods.cThu Jul 2 22:36:16 2009 @@ -14,7 +14,7 @@ +--+ */ -/* $Id: locale_methods.c,v 1.1.2.10 2009/07/02 00:43:26 stas Exp $ */ +/* $Id: locale_methods.c,v 1.1.2.11 2009/07/02 22:36:16 stas Exp $ */ #ifdef HAVE_CONFIG_H #include config.h @@ -147,7 +147,7 @@ int result =-1; int i; - for(i=savedPos; i=0; i--) { + for(i=savedPos-1; i=0; i--) { if(isIDSeparator(*(str+i)) ){ /* delimiter found; check for singleton */ if(i=2 isIDSeparator(*(str+i-2)) ){ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/intl/locale locale_methods.c
stasThu Jul 2 22:37:03 2009 UTC Modified files: /php-src/ext/intl/localelocale_methods.c Log: bugfix http://cvs.php.net/viewvc.cgi/php-src/ext/intl/locale/locale_methods.c?r1=1.13r2=1.14diff_format=u Index: php-src/ext/intl/locale/locale_methods.c diff -u php-src/ext/intl/locale/locale_methods.c:1.13 php-src/ext/intl/locale/locale_methods.c:1.14 --- php-src/ext/intl/locale/locale_methods.c:1.13 Thu Jul 2 00:47:11 2009 +++ php-src/ext/intl/locale/locale_methods.cThu Jul 2 22:37:03 2009 @@ -14,7 +14,7 @@ +--+ */ -/* $Id: locale_methods.c,v 1.13 2009/07/02 00:47:11 stas Exp $ */ +/* $Id: locale_methods.c,v 1.14 2009/07/02 22:37:03 stas Exp $ */ #ifdef HAVE_CONFIG_H #include config.h @@ -147,7 +147,7 @@ int result =-1; int i; - for(i=savedPos; i=0; i--) { + for(i=savedPos-1; i=0; i--) { if(isIDSeparator(*(str+i)) ){ /* delimiter found; check for singleton */ if(i=2 isIDSeparator(*(str+i-2)) ){ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/curl/tests bug48207.phpt curl_CURLOPT_READDATA.phpt curl_close_basic.phpt curl_copy_handle_basic_001.phpt curl_copy_handle_basic_002.phpt curl_copy_handle_basic_004.phpt cu
felipe Fri Jul 3 00:04:54 2009 UTC Added files: /php-src/ext/curl/tests bug48207.phpt curl_CURLOPT_READDATA.phpt curl_close_basic.phpt curl_copy_handle_basic_001.phpt curl_copy_handle_basic_002.phpt curl_copy_handle_basic_004.phpt curl_copy_handle_basic_005.phpt curl_copy_handle_basic_006.phpt curl_error_basic.phpt curl_multi_close_basic.phpt curl_multi_getcontent_basic3.phpt curl_multi_getcontent_error1.phpt curl_multi_getcontent_error2.phpt curl_multi_getcontent_error3.phpt curl_multi_getcontent_error4.phpt curl_multi_init_basic.phpt curl_multi_select_basic1.phpt curl_setopt_CURLOPT_FOLLOWLOCATION_open_basedir.phpt curl_setopt_CURLOPT_READFUNCTION.phpt curl_setopt_array_basic.phpt curl_setopt_basic001.phpt curl_setopt_basic002.phpt curl_setopt_basic003.phpt curl_setopt_basic004.phpt curl_setopt_error.phpt curl_write_callback.phpt curl_write_file.phpt curl_write_return.phpt curl_write_stdout.phpt curl_writeheader_callback.phpt Modified files: /php-src/ext/curl/tests/responder get.php Log: - New tests (DutchUG testfest) http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/responder/get.php?r1=1.2r2=1.3diff_format=u Index: php-src/ext/curl/tests/responder/get.php diff -u php-src/ext/curl/tests/responder/get.php:1.2 php-src/ext/curl/tests/responder/get.php:1.3 --- php-src/ext/curl/tests/responder/get.php:1.2Sat May 16 17:02:02 2009 +++ php-src/ext/curl/tests/responder/get.phpFri Jul 3 00:04:54 2009 @@ -1,5 +1,8 @@ ?php switch($_GET['test']) { +case 'post': + var_dump($_POST); + break; case 'getpost': var_dump($_GET); var_dump($_POST); http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/bug48207.phpt?view=markuprev=1.1 Index: php-src/ext/curl/tests/bug48207.phpt +++ php-src/ext/curl/tests/bug48207.phpt --TEST-- Test curl_setopt() CURLOPT_FILE readonly file handle --CREDITS-- Mark van der Velden #testfest Utrecht 2009 --SKIPIF-- ?php if (!extension_loaded(curl)) print skip; ? --FILE-- ?php /* * Description : Adds a file which stores the received data from curl_exec(); * Source code : ext/curl/multi.c * Test documentation: http://wiki.php.net/qa/temp/ext/curl */ // Figure out what handler to use if(!empty($_ENV['PHP_CURL_HTTP_REMOTE_SERVER'])) { // Use the set Environment variable $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER']; } else { // Create a temporary file for the test $tempname = tempnam(sys_get_temp_dir(), 'CURL_HANDLE'); $url = 'file://'. $tempname; // add the test data to the file file_put_contents($tempname, Hello World!\nHello World!); } $tempfile = tempnam(sys_get_temp_dir(), 'CURL_FILE_HANDLE'); $ch = curl_init($url); $fp = fopen($tempfile, r); // Opening 'fubar' with the incorrect readonly flag curl_setopt($ch, CURLOPT_FILE, $fp); curl_exec($ch); curl_close($ch); is_file($tempfile) and @unlink($tempfile); isset($tempname) and is_file($tempname) and @unlink($tempfile); ? --EXPECTF-- Warning: curl_setopt(): the provided file handle is not writable in %s on line %d %S http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/curl_CURLOPT_READDATA.phpt?view=markuprev=1.1 Index: php-src/ext/curl/tests/curl_CURLOPT_READDATA.phpt +++ php-src/ext/curl/tests/curl_CURLOPT_READDATA.phpt --TEST-- Test CURLOPT_READDATA without a callback function --CREDITS-- Mattijs Hoitink mattijshoit...@gmail.com #Testfest Utrecht 2009 --SKIPIF-- ?php if (!extension_loaded(curl) || empty($_ENV['PHP_CURL_HTTP_REMOTE_SERVER'])) print skip; ? --FILE-- ?php // The URL to POST to $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER'] . '/get.php?test=post'; // Create a temporary file to read the data from $tempname = tempnam(sys_get_temp_dir(), 'CURL_DATA'); file_put_contents($tempname, hello=worldsmurf=blue); ob_start(); $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_READDATA, fopen($tempname, 'rb')); curl_setopt($ch, CURLOPT_HTTPHEADER,
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/curl/tests bug48207.phpt curl_CURLOPT_READDATA.phpt curl_close_basic.phpt curl_copy_handle_basic_001.phpt curl_copy_handle_basic_002.phpt curl_copy_handle_basic_00
felipe Fri Jul 3 00:09:08 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/curl/tests bug48207.phpt curl_CURLOPT_READDATA.phpt curl_close_basic.phpt curl_copy_handle_basic_001.phpt curl_copy_handle_basic_002.phpt curl_copy_handle_basic_004.phpt curl_copy_handle_basic_005.phpt curl_copy_handle_basic_006.phpt curl_error_basic.phpt curl_multi_close_basic.phpt curl_multi_getcontent_basic3.phpt curl_multi_getcontent_error1.phpt curl_multi_getcontent_error2.phpt curl_multi_getcontent_error3.phpt curl_multi_getcontent_error4.phpt curl_multi_init_basic.phpt curl_multi_select_basic1.phpt curl_setopt_CURLOPT_FOLLOWLOCATION_open_basedir.phpt curl_setopt_CURLOPT_READFUNCTION.phpt curl_setopt_array_basic.phpt curl_setopt_basic001.phpt curl_setopt_basic002.phpt curl_setopt_basic003.phpt curl_setopt_basic004.phpt curl_setopt_error.phpt curl_testdata1.txt curl_testdata2.txt curl_write_callback.phpt curl_write_file.phpt curl_write_return.phpt curl_write_stdout.phpt curl_writeheader_callback.phpt Modified files: /php-src/ext/curl/tests/responder get.php Log: - New tests (DutchUG testfest) http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/responder/get.php?r1=1.1.2.3r2=1.1.2.4diff_format=u Index: php-src/ext/curl/tests/responder/get.php diff -u php-src/ext/curl/tests/responder/get.php:1.1.2.3 php-src/ext/curl/tests/responder/get.php:1.1.2.4 --- php-src/ext/curl/tests/responder/get.php:1.1.2.3Sat May 16 17:02:24 2009 +++ php-src/ext/curl/tests/responder/get.phpFri Jul 3 00:09:08 2009 @@ -1,5 +1,8 @@ ?php switch($_GET['test']) { +case 'post': + var_dump($_POST); + break; case 'getpost': var_dump($_GET); var_dump($_POST); http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/bug48207.phpt?view=markuprev=1.1 Index: php-src/ext/curl/tests/bug48207.phpt +++ php-src/ext/curl/tests/bug48207.phpt --TEST-- Test curl_setopt() CURLOPT_FILE readonly file handle --CREDITS-- Mark van der Velden #testfest Utrecht 2009 --SKIPIF-- ?php if (!extension_loaded(curl)) print skip; ? --FILE-- ?php /* * Description : Adds a file which stores the received data from curl_exec(); * Source code : ext/curl/multi.c * Test documentation: http://wiki.php.net/qa/temp/ext/curl */ // Figure out what handler to use if(!empty($_ENV['PHP_CURL_HTTP_REMOTE_SERVER'])) { // Use the set Environment variable $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER']; } else { // Create a temporary file for the test $tempname = tempnam(sys_get_temp_dir(), 'CURL_HANDLE'); $url = 'file://'. $tempname; // add the test data to the file file_put_contents($tempname, Hello World!\nHello World!); } $tempfile = tempnam(sys_get_temp_dir(), 'CURL_FILE_HANDLE'); $ch = curl_init($url); $fp = fopen($tempfile, r); // Opening 'fubar' with the incorrect readonly flag curl_setopt($ch, CURLOPT_FILE, $fp); curl_exec($ch); curl_close($ch); is_file($tempfile) and @unlink($tempfile); isset($tempname) and is_file($tempname) and @unlink($tempfile); ? --EXPECTF-- Warning: curl_setopt(): the provided file handle is not writable in %s on line %d %S http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/curl_CURLOPT_READDATA.phpt?view=markuprev=1.1 Index: php-src/ext/curl/tests/curl_CURLOPT_READDATA.phpt +++ php-src/ext/curl/tests/curl_CURLOPT_READDATA.phpt --TEST-- Test CURLOPT_READDATA without a callback function --CREDITS-- Mattijs Hoitink mattijshoit...@gmail.com #Testfest Utrecht 2009 --SKIPIF-- ?php if (!extension_loaded(curl) || empty($_ENV['PHP_CURL_HTTP_REMOTE_SERVER'])) print skip; ? --FILE-- ?php // The URL to POST to $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER'] . '/get.php?test=post'; // Create a temporary file to read the data from $tempname = tempnam(sys_get_temp_dir(), 'CURL_DATA'); file_put_contents($tempname, hello=worldsmurf=blue); ob_start(); $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_READDATA,
[PHP-CVS] cvs: php-src /ext/curl/tests curl_testdata1.txt curl_testdata2.txt
felipe Fri Jul 3 00:09:47 2009 UTC Modified files: /php-src/ext/curl/tests curl_testdata1.txt curl_testdata2.txt Log: - Missing files http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/curl_testdata1.txt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/curl/tests/curl_testdata1.txt diff -u /dev/null php-src/ext/curl/tests/curl_testdata1.txt:1.2 --- /dev/null Fri Jul 3 00:09:47 2009 +++ php-src/ext/curl/tests/curl_testdata1.txt Fri Jul 3 00:09:47 2009 @@ -0,0 +1 @@ +CURL1 http://cvs.php.net/viewvc.cgi/php-src/ext/curl/tests/curl_testdata2.txt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/curl/tests/curl_testdata2.txt diff -u /dev/null php-src/ext/curl/tests/curl_testdata2.txt:1.2 --- /dev/null Fri Jul 3 00:09:47 2009 +++ php-src/ext/curl/tests/curl_testdata2.txt Fri Jul 3 00:09:47 2009 @@ -0,0 +1 @@ +CURL2 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: CVSROOT / avail
philip Fri Jul 3 02:27:41 2009 UTC Modified files: /CVSROOTavail Log: - give doc geeks access to the phpdoc-po directory (po (gettext) files) http://cvs.php.net/viewvc.cgi/CVSROOT/avail?r1=1.1543r2=1.1544diff_format=u Index: CVSROOT/avail diff -u CVSROOT/avail:1.1543 CVSROOT/avail:1.1544 --- CVSROOT/avail:1.1543Thu Jul 2 20:02:12 2009 +++ CVSROOT/avail Fri Jul 3 02:27:40 2009 @@ -41,7 +41,7 @@ # The PHP Documentation Group maintains the documentation and its # translations. -avail|mgdm,lucas,jmertic,bobby,takagi,gcc,cem,mfp,ansriniv,jsgoupil,mazzanet,frogger,coldocean,fleaslob,torben,lynch,kk,ted,paul,mbritton,bibi,mrobinso,perugini,tzwenny,drews,paulsen,hartmann,leon,jonen,tschuer,tfromm,manuel,danbeck,sli,jmcastagnetto,mohrt,samesch,soneca,ronabop,glace,latoserver,rafael,jcmeloni,chrullrich,mk,troels,mathieu,phaethon,mj,corean,pandach,cycle98,vizvil,regina,cynic,jpm,dams,karoora,pcraft,suvia,zimt,ftfuture,ag315,bbonev,afortaleza,neotron,cg,delrom,jkj,hellekin,kgergely,cnewbill,fuzzy74,bjoern,fams,smasiello,dim,lucasr,cpereira,ernani,theseer,noribsd,subjective,ufux,hadar_p,asautins,dbenson,aleczapka,tom,amiller,cortesi,rarruda,betz,alindeman,thyla,cucinato,zyprexia,tpug,mitja,conni,sts,nmav,subbie,leszek,spheroid,slawek,alan_dangelo,ae,nohn,kaser01,visualmind,kurtz,luk,tronic,moh,gerzson,webler,spooky,cece,daniel,boo,nhoizey,joerg,hakan,chief977,shlomi,raful,yuval,tomer,barak,ido,mork,lior,gal,adiju,cr_depend,florian,kappu,muricaru,dt,critix,c! k,costra,fancao0515,tibee,eriksson,wenz,bs,anderson,matroz,ave,adu,mmeier,wentzel,scaro,aspinei,lmaxcar,manuzhai,darvina,peter,maxim,romakhin,n0nick,attila,sagi,kai,microbrain,rhheo,shimi,djworld,emil,lboshell,netholic,dmitry83,progcom,verdana,yincheng,surfmax,nicos,bbd,cyril,gregory,hudzilla,klean,mignoni,wiesemann,xqi,mersal,zruya,sean,staybyte,aber_sabeel,alzahrani,thomaslio,jippie,antonio,ahxiao,akcakayaa,allhibi,aner,black,class007,digo,dima,dorons,eshare,hpop1,itay,juppie,mrmatrix,saad,thomasgm,xbite,tobsn,jome,analytik,outsider,heymarcel,asmodean,bader,elmaystro,sp,truelight,gnuhacker,_batman_,sachat,dallas,dejan,zer0fill,steve3d,lm92,bradmssw,tahani,victor,erica,simonh,phpman,mrphp,notarius,joseph,mmkhajah,mohammed,proton,klootz,takashima,leoca,ahmad,abobader,fboudot,wurm,hakawy,felix,ahmedss,mahrous2020,yorgo,gal_ga,abodive,ama,andras,hassen,jkhdk,okamura,popov,xman,fernandoc,avenger,hwin,tix,alrehawi_,liuming,ramysaweres,astone,shiflett,jaenecke,bdensley,adamchan,! jingfs,murphy,potatotsang,the_q,jsheets,xelis,equerci,phpcatala,tofani ni,umut,kriga,ray,royhuggins,logician,almanar,alexws,gonik,haiaw,lkwang_cn,shadowwulf,telecart,pongsakorn,naveed,shivas,tularis,angela,decorj,hitcho,kevinkee,nmee,thx1140,crotalus,didou,novotnyr,sil,traduim,gui,mgf,ivanr,michal,tsirman,momo,cysoft,firefox,kouber,mipac,muslem,tomysk,vemarkov,garth,lord_lele,stone,laacz,retnug,ernestyang,hatem,house,luisdaniel,nizar,nvivo,seth,tomh,danguer,adam,nio,wassago,beeven,colacino,zvaranka,cesarguru,chubu,dark2907,portoban,reven,wizzard,sywr,koendw83,rylin,webstudio,jsjohnst,dmanusset,et,pitiphan,mbr,cdalar,alrashoudi,hafid,enough,zhouhao007,jnorbi,lorenzohgh,denisr,coder03,jcclaros,thomas,freeman,rioter,jschultz,davey,belleto,jtacon,yuw,elfyn,noam,nathan,salman,cheezy,ene,rezaiqbal,purnomo,dufiga_php,ftp_geo,udhien,prio,luckyguy354,maf,handi,meme,satiri,maddankara,rildo,hd,ali,lpj,adhitama,engkongs,preilly,dave,marcelo,curt,fd,javi,mrmaster,fa,vrana,apaxx,pjotrik,marduk,narcotia1234,enloma,trizo,xmadda,redshift,alifikri,coder,dodol_ma! niac,eflorin,adywarna,kyokpae,milans,lovchy,spermwhale,phaze,baoengb,derek,yannick,daan,xxiengb,ott,mg,kennyt,tomsommer,poz,zamolxe,bishmila,ph1,irchtml,rogamer,bortolini,sapfir,guru,ahmed,robinhood,sohli,amt,romain,hlecuanda,thessoro,nforbes,jolan,laze,bagilevi,young,shakaali,chokobo,portalufpa,teecee,blindman,holst,schst,mnv,sodhi,aidan,jellybob,lauer,shenkong,jad,robert,peterhuewe,ogre,techtonik,narigone,realtebo,krid,mclay,dasch,miwaniec,abdshomad,sammywg,aeoris,mez,jed,hsc,luckec,dmytton,choudesh,phpvcn,simp,michael,grantc,atex,katja,sthulbourn,mikl,kevinsz,roast,tessus,gavinfo,rant,ramsey,arkadius,erinet,omar,oliver,rquadling,timo,shadda,joeaccord,ezyang,ljbuesch,knut,asonge,ron,nicobn,jacques,void,mcbrown,simionea,preinheimer,stanprog,msaraujo,asbjornit,philippe,sezer,rmlr,hradtke,alan,danielc,danbrown,alexxed,psalehpoor,loudi,abedford,morgue,nilgun,saltybeagle,dedemorton,eniac2008,jawed,ch,ericstewart,mager,keito,juxecl,salathe,chx,vito,beverloo|phpdoc,phpdoc-ar,php! doc-bg,phpdoc-cs,phpdoc-da,phpdoc-de,phpdoc-el,phpdoc-es,phpdoc-fa,php doc-fi,phpdoc-fr,phpdoc-he,phpdoc-hk,phpdoc-hu,phpdoc-id,phpdoc-it,phpdoc-ja,phpdoc-kr,phpdoc-lt,phpdoc-nl,phpdoc-pl,phpdoc-pt_BR,phpdoc-pt,phpdoc-ro,phpdoc-ru,phpdoc-sk,phpdoc-sl,phpdoc-sv,phpdoc-tr,phpdoc-tw,phpdoc-zh,phpdoc-ca,phpdoc-no,phd,docweb,doc-editor
[PHP-CVS] cvs: CVSROOT / avail
philip Fri Jul 3 04:18:41 2009 UTC Modified files: /CVSROOTavail Log: - also add phpdoc-po to the php-src listing http://cvs.php.net/viewvc.cgi/CVSROOT/avail?r1=1.1544r2=1.1545diff_format=u Index: CVSROOT/avail diff -u CVSROOT/avail:1.1544 CVSROOT/avail:1.1545 --- CVSROOT/avail:1.1544Fri Jul 3 02:27:40 2009 +++ CVSROOT/avail Fri Jul 3 04:18:41 2009 @@ -17,7 +17,7 @@ # The PHP Developers have full access to the full source trees for # PHP, as well as the documentation. -avail|mbeccati,dkelsey,ilewis,mkoppanen,lstrojny,dharmap,kraghuba,stevseea,colder,lwe,auroraeosrose,mike,rolland,cawa,msisolak,alan_k,rrichards,tal,mfischer,fmk,hirokawa,jah,eschmid,dbeu,sebastian,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,jani,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,svanegmond,rjs,vlad,jimjag,emile,ericstewart,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,bmcadams,swm,zhang,kevin,joey,entity,cardinal,coar,jflemer,raphael,danda,rbb,mboeren,dougm,edink,alexwaugh,bernd,zak,sesser,yohgaki,imajes,markonen,dickmeiss,helly,sander,jan,kir,aaron,jwoolley,pbannister,rvenkat,dali,rodif_bl,hyanantha,witten,georg,msopacua,mpdoremus,fujimoto,iliaa,chregu,azzit,gschlossnagle,andrey,dan,moriyoshi,dviner,bfrance,flex,iwakiri,john,harrie,pollita,ianh,k.schroeder,dcowgill,jerenkrantz,jay,ddhill,jorton,thetaphi,abies,vincent,goba,dmitry,pajoye,shie,rafi,magnus,! tony2001,johannes,dbs,skoduru,nrathna,jesus,gopalv,bjori,nlopess,wrowe,shire,zoe,scottmac,t2man,dsp,davidw,ab5602,nicholsr,lsmith,cellog,davidc,felipe,robinf,jmessa,philip,sixd,gwynne,ant,kalle,mattwil,sfox,hnangelo,ohill,indeyets,felixdv,mich4ld,lbarnaud,cseiler,sean,tabe,sebs,garretts,guenter|phpfi,php3,php-src,pecl,non-pecl,spl,phpdoc,phpdoc-ar,phpdoc-bg,phpdoc-cs,phpdoc-da,phpdoc-de,phpdoc-el,phpdoc-es,phpdoc-fa,phpdoc-fi,phpdoc-fr,phpdoc-he,phpdoc-hk,phpdoc-hu,phpdoc-id,phpdoc-it,phpdoc-ja,phpdoc-kr,phpdoc-lt,phpdoc-nl,phpdoc-pl,phpdoc-pt_BR,phpdoc-pt,phpdoc-ro,phpdoc-ru,phpdoc-sk,phpdoc-sl,phpdoc-sv,phpdoc-tr,phpdoc-tw,phpdoc-zh,phpdoc-ca,phpdoc-no,phd,docweb,doc-editor +avail|mbeccati,dkelsey,ilewis,mkoppanen,lstrojny,dharmap,kraghuba,stevseea,colder,lwe,auroraeosrose,mike,rolland,cawa,msisolak,alan_k,rrichards,tal,mfischer,fmk,hirokawa,jah,eschmid,dbeu,sebastian,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,jani,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,svanegmond,rjs,vlad,jimjag,emile,ericstewart,wez,sasha,camber,ohrn,romolo,martin,lurcher,wsanchez,dreid,bmcadams,swm,zhang,kevin,joey,entity,cardinal,coar,jflemer,raphael,danda,rbb,mboeren,dougm,edink,alexwaugh,bernd,zak,sesser,yohgaki,imajes,markonen,dickmeiss,helly,sander,jan,kir,aaron,jwoolley,pbannister,rvenkat,dali,rodif_bl,hyanantha,witten,georg,msopacua,mpdoremus,fujimoto,iliaa,chregu,azzit,gschlossnagle,andrey,dan,moriyoshi,dviner,bfrance,flex,iwakiri,john,harrie,pollita,ianh,k.schroeder,dcowgill,jerenkrantz,jay,ddhill,jorton,thetaphi,abies,vincent,goba,dmitry,pajoye,shie,rafi,magnus,! tony2001,johannes,dbs,skoduru,nrathna,jesus,gopalv,bjori,nlopess,wrowe,shire,zoe,scottmac,t2man,dsp,davidw,ab5602,nicholsr,lsmith,cellog,davidc,felipe,robinf,jmessa,philip,sixd,gwynne,ant,kalle,mattwil,sfox,hnangelo,ohill,indeyets,felixdv,mich4ld,lbarnaud,cseiler,sean,tabe,sebs,garretts,guenter|phpfi,php3,php-src,pecl,non-pecl,spl,phpdoc,phpdoc-ar,phpdoc-bg,phpdoc-cs,phpdoc-da,phpdoc-de,phpdoc-el,phpdoc-es,phpdoc-fa,phpdoc-fi,phpdoc-fr,phpdoc-he,phpdoc-hk,phpdoc-hu,phpdoc-id,phpdoc-it,phpdoc-ja,phpdoc-kr,phpdoc-lt,phpdoc-nl,phpdoc-pl,phpdoc-pt_BR,phpdoc-pt,phpdoc-ro,phpdoc-ru,phpdoc-sk,phpdoc-sl,phpdoc-sv,phpdoc-tr,phpdoc-tw,phpdoc-zh,phpdoc-ca,phpdoc-no,phpdoc-po,phd,docweb,doc-editor # Some people have access to tests in the Engine avail|ilewis,magnus,michael,zoe,jmessa,sfox,tomerc,felixdv|Zend/tests,ZendEngine2/tests -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php