[PHP-CVS-DAILY] cvs: php-src / ChangeLog
changelog Mon Jul 11 01:39:34 2005 EDT Modified files: /php-srcChangeLog Log: ChangeLog update http://cvs.php.net/diff.php/php-src/ChangeLog?r1=1.2038r2=1.2039ty=u Index: php-src/ChangeLog diff -u php-src/ChangeLog:1.2038 php-src/ChangeLog:1.2039 --- php-src/ChangeLog:1.2038Sun Jul 10 01:39:03 2005 +++ php-src/ChangeLog Mon Jul 11 01:39:30 2005 @@ -1,3 +1,76 @@ +2005-07-10 Jani Taskinen [EMAIL PROTECTED] + +* NEWS + ext/dbx/.cvsignore + ext/dbx/CREDITS + ext/dbx/INSTALL + ext/dbx/config.m4 + ext/dbx/config.w32 + ext/dbx/dbx.c + ext/dbx/dbx.dsp + ext/dbx/dbx.h + ext/dbx/dbx_fbsql.c + ext/dbx/dbx_fbsql.h + ext/dbx/dbx_mssql.c + ext/dbx/dbx_mssql.h + ext/dbx/dbx_mysql.c + ext/dbx/dbx_mysql.h + ext/dbx/dbx_oci8.c + ext/dbx/dbx_oci8.h + ext/dbx/dbx_odbc.c + ext/dbx/dbx_odbc.h + ext/dbx/dbx_pgsql.c + ext/dbx/dbx_pgsql.h + ext/dbx/dbx_sqlite.c + ext/dbx/dbx_sqlite.h + ext/dbx/dbx_sybasect.c + ext/dbx/dbx_sybasect.h + ext/dbx/howto_extend_dbx.html + ext/dbx/package.xml + ext/dbx/php_dbx.h + ext/dbx/tests/.cvsignore + ext/dbx/tests/001.phpt + ext/dbx/tests/002.phpt + ext/dbx/tests/003.phpt + ext/dbx/tests/004.phpt + ext/dbx/tests/005.phpt + ext/dbx/tests/006.phpt + ext/dbx/tests/007.phpt + ext/dbx/tests/008.phpt + ext/dbx/tests/009.phpt + ext/dbx/tests/010.phpt + ext/dbx/tests/dbx_test.p + ext/dbx/tests/dbx_test.pgsql.script + ext/dbx/tests/dbx_test.script + ext/dbx/tests/skipif.inc + ext/ircg/.cvsignore + ext/ircg/CREDITS + ext/ircg/Makefile.frag + ext/ircg/README.txt + ext/ircg/config.m4 + ext/ircg/ircg.c + ext/ircg/ircg.php + ext/ircg/ircg_common.c + ext/ircg/ircg_scanner.c + ext/ircg/ircg_scanner.re + ext/ircg/ircg_thttpd.c + ext/ircg/php_ircg.h + ext/ircg/php_ircg_alloc.h + ext/ircg/php_ircg_cache.c + ext/ircg/php_ircg_cache.h + ext/ircg/php_ircg_conversion.c + ext/ircg/php_ircg_conversion.h + ext/ircg/php_ircg_error.c + ext/ircg/php_ircg_error.h + ext/ircg/php_ircg_formats.h + ext/ircg/php_ircg_hash.h + ext/ircg/php_ircg_lock.h + ext/ircg/php_ircg_private.h + ext/ircg/php_ircg_smart_str.h + ext/ircg/php_ircg_tokenizer.c + ext/ircg/php_ircg_tokenizer.h: + - Moved ext/dbx and ext/ircg to PECL. + 2005-07-09 Jani Taskinen [EMAIL PROTECTED] * run-tests.php: @@ -6146,7 +6219,7 @@ * (PHP_4_3) ext/standard/url_scanner_ex.re: - Missing $Id: ChangeLog,v 1.2038 2005/07/10 05:39:03 changelog Exp $ tag + Missing $Id: ChangeLog,v 1.2039 2005/07/11 05:39:30 changelog Exp $ tag * (PHP_5_0) ext/standard/url_scanner_ex.c: @@ -9547,7 +9620,7 @@ ext/session/mod_mm.h ext/session/mod_user.h ext/session/php_session.h: - - Missing $Id: ChangeLog,v 1.2038 2005/07/10 05:39:03 changelog Exp $ tags + - Missing $Id: ChangeLog,v 1.2039 2005/07/11 05:39:30 changelog Exp $ tags * (PHP_4_3) ext/session/session.c: @@ -10028,7 +10101,7 @@ * (PHP_4_3) Zend/zend_ini_scanner.l: - Missing $Id: ChangeLog,v 1.2038 2005/07/10 05:39:03 changelog Exp $ tag + ws fix + Missing $Id: ChangeLog,v 1.2039 2005/07/11 05:39:30 changelog Exp $ tag + ws fix * ZendEngine2/zend_ini_scanner.l ZendEngine2/zend_ini_scanner.l: @@ -11502,7 +11575,7 @@ ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.h ext/standard/url_scanner_ex.re: - Missing $Id: ChangeLog,v 1.2038 2005/07/10 05:39:03 changelog Exp $ tag + Missing $Id: ChangeLog,v 1.2039 2005/07/11 05:39:30 changelog Exp $ tag * ext/standard/credits_ext.h ext/standard/credits_sapi.h:
Re: [PHP-CVS] cvs: php-src / NEWS /ext/pgsql pgsql.c php_pgsql.h
Done. Dunno if i have to put new files anywhere else other than just added them Surely it should be the function writer's job to document what they add? This function should probably also be called 'pg_fetch_column' to be consistent. Chris Antony Dovgal wrote: Send a patch to the docs list? On Fri, 08 Jul 2005 15:48:38 +0800 Christopher Kings-Lynne [EMAIL PROTECTED] wrote: Docs? Ilia Alshanetsky wrote: iliaa Thu Jul 7 20:40:33 2005 EDT Modified files: /php-src NEWS /php-src/ext/pgsql pgsql.c php_pgsql.h Log: Added pg_fetch_all_columns() function to fetch all values of a column from a result cursor. http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1987r2=1.1988ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1987 php-src/NEWS:1.1988 --- php-src/NEWS:1.1987 Thu Jul 7 12:07:08 2005 +++ php-src/NEWSThu Jul 7 20:40:32 2005 @@ -5,6 +5,8 @@ - Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql. (Ilia) - Added date_timezone_set() function to set the timezone that the date functions will use. (Derick) +- Added pg_fetch_all_columns() function to fetch all values of a column from + a result cursor. (Ilia) - Implemented feature request #33452 (Year belonging to ISO week). (Derick) - Fixed support for shared extensions on AIX. (Dmitry) - Fixed memory corruption in pg_copy_from() in case the as_null parameter was http://cvs.php.net/diff.php/php-src/ext/pgsql/pgsql.c?r1=1.329r2=1.330ty=u Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.329 php-src/ext/pgsql/pgsql.c:1.330 --- php-src/ext/pgsql/pgsql.c:1.329 Tue Jul 5 10:49:22 2005 +++ php-src/ext/pgsql/pgsql.c Thu Jul 7 20:40:32 2005 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: pgsql.c,v 1.329 2005/07/05 14:49:22 edink Exp $ */ +/* $Id: pgsql.c,v 1.330 2005/07/08 00:40:32 iliaa Exp $ */ #include stdlib.h @@ -127,6 +127,7 @@ PHP_FE(pg_fetch_array, NULL) PHP_FE(pg_fetch_object, NULL) PHP_FE(pg_fetch_all,NULL) + PHP_FE(pg_fetch_all_columns,NULL) #if HAVE_PQCMDTUPLES PHP_FE(pg_affected_rows,NULL) #endif @@ -2101,6 +2102,47 @@ } /* }}} */ +/* {{{ proto array pg_fetch_all_columns(resource result [, int column_number]) + Fetch all rows into array */ +PHP_FUNCTION(pg_fetch_all_columns) +{ + zval *result; + PGresult *pgsql_result; + pgsql_result_handle *pg_result; + long colno=0; + int pg_numrows, pg_row; + size_t num_fields; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, r|l, result, colno) == FAILURE) { + RETURN_FALSE; + } + + ZEND_FETCH_RESOURCE(pg_result, pgsql_result_handle *, result, -1, PostgreSQL result, le_result); + + pgsql_result = pg_result-result; + + num_fields = PQnfields(pgsql_result); + if (colno = num_fields || colno 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, Invalid column number '%ld', colno); + RETURN_FALSE; + } + + array_init(return_value); + +if ((pg_numrows = PQntuples(pgsql_result)) = 0) { + return; + } + + for (pg_row = 0; pg_row pg_numrows; pg_row++) { + if (PQgetisnull(pgsql_result, pg_row, colno)) { + add_next_index_null(return_value); + } else { + add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, colno), 1); + } + } +} +/* }}} */ + /* {{{ proto bool pg_result_seek(resource result, int offset) Set internal row offset */ PHP_FUNCTION(pg_result_seek) http://cvs.php.net/diff.php/php-src/ext/pgsql/php_pgsql.h?r1=1.71r2=1.72ty=u Index: php-src/ext/pgsql/php_pgsql.h diff -u php-src/ext/pgsql/php_pgsql.h:1.71 php-src/ext/pgsql/php_pgsql.h:1.72 --- php-src/ext/pgsql/php_pgsql.h:1.71 Wed Apr 13 17:48:33 2005 +++ php-src/ext/pgsql/php_pgsql.h Thu Jul 7 20:40:32 2005 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: php_pgsql.h,v 1.71 2005/04/13 21:48:33 derick Exp $ */ +/* $Id: php_pgsql.h,v 1.72 2005/07/08 00:40:32 iliaa Exp $ */ #ifndef PHP_PGSQL_H #define PHP_PGSQL_H @@ -107,6 +107,7 @@ PHP_FUNCTION(pg_fetch_result); PHP_FUNCTION(pg_fetch_row); PHP_FUNCTION(pg_fetch_all); +PHP_FUNCTION(pg_fetch_all_columns); #if HAVE_PQCMDTUPLES PHP_FUNCTION(pg_affected_rows); #endif -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: CVSROOT / avail
derick Sun Jul 10 08:22:24 2005 EDT Modified files: /CVSROOTavail Log: - Give Justin Patrin pear/Text_Wiki access on request of helgi and pierre. http://cvs.php.net/diff.php/CVSROOT/avail?r1=1.993r2=1.994ty=u Index: CVSROOT/avail diff -u CVSROOT/avail:1.993 CVSROOT/avail:1.994 --- CVSROOT/avail:1.993 Thu Jul 7 11:47:34 2005 +++ CVSROOT/avail Sun Jul 10 08:22:23 2005 @@ -179,7 +179,7 @@ avail|jdonagher,david|php-src/ext/pfpro avail|jah,chriskl|php-src/ext/pgsql,phpdoc/en/reference/pgsql,php-src/NEWS,php-src/ext/pdo_pgsql avail|ostborn|php-src/ext/phpdoc,pecl/phpdoc,pecl/soap,pear/Image_GIS -avail|delatbabel|pear/Text_Wiki +avail|delatbabel,justinpatrin|pear/Text_Wiki avail|clay|pear/VersionControl avail|mfonda|pear/Crypt_HMAC avail|mfonda|pear/Crypt_Blowfish -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/date/lib/resource parse_date.re
helly Sun Jul 10 10:04:21 2005 EDT Modified files: /php-src/ext/date/lib/resource parse_date.re Log: - use three digit octal character definition http://cvs.php.net/diff.php/php-src/ext/date/lib/resource/parse_date.re?r1=1.22r2=1.23ty=u Index: php-src/ext/date/lib/resource/parse_date.re diff -u php-src/ext/date/lib/resource/parse_date.re:1.22 php-src/ext/date/lib/resource/parse_date.re:1.23 --- php-src/ext/date/lib/resource/parse_date.re:1.22Tue Jul 5 17:33:33 2005 +++ php-src/ext/date/lib/resource/parse_date.re Sun Jul 10 10:04:20 2005 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: parse_date.re,v 1.22 2005/07/05 21:33:33 derick Exp $ */ +/* $Id: parse_date.re,v 1.23 2005/07/10 14:04:20 helly Exp $ */ #include timelib.h @@ -1393,7 +1393,7 @@ goto std; } - \0|\n + \000|\n { s-pos = cursor; s-line++; goto std; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/date/lib parse_date.c
sniper Sun Jul 10 13:56:37 2005 EDT Modified files: /php-src/ext/date/lib parse_date.c Log: touch http://cvs.php.net/diff.php/php-src/ext/date/lib/parse_date.c?r1=1.25r2=1.26ty=u Index: php-src/ext/date/lib/parse_date.c diff -u php-src/ext/date/lib/parse_date.c:1.25 php-src/ext/date/lib/parse_date.c:1.26 --- php-src/ext/date/lib/parse_date.c:1.25 Tue Jul 5 17:33:32 2005 +++ php-src/ext/date/lib/parse_date.c Sun Jul 10 13:56:35 2005 @@ -1,4 +1,4 @@ -/* Generated by re2c 0.9.8.dev on Tue Jul 5 23:30:28 2005 */ +/* Generated by re2c 0.9.8 on Sun Jul 10 20:55:35 2005 */ #line 1 resource/parse_date.re /* +--+ @@ -18,7 +18,7 @@ +--+ */ -/* $Id: parse_date.c,v 1.25 2005/07/05 21:33:32 derick Exp $ */ +/* $Id: parse_date.c,v 1.26 2005/07/10 17:56:35 sniper Exp $ */ #include timelib.h -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src / NEWS /ext/dbx .cvsignore CREDITS INSTALL config.m4 config.w32 dbx.c dbx.dsp dbx.h dbx_fbsql.c dbx_fbsql.h dbx_mssql.c dbx_mssql.h dbx_mysql.c dbx_mysql.h dbx_oci8.c dbx_oci8.
sniper Sun Jul 10 15:05:10 2005 EDT Removed files: /php-src/ext/dbx.cvsignore CREDITS INSTALL config.m4 config.w32 dbx.c dbx.dsp dbx.h dbx_fbsql.c dbx_fbsql.h dbx_mssql.c dbx_mssql.h dbx_mysql.c dbx_mysql.h dbx_oci8.c dbx_oci8.h dbx_odbc.c dbx_odbc.h dbx_pgsql.c dbx_pgsql.h dbx_sqlite.c dbx_sqlite.h dbx_sybasect.c dbx_sybasect.h howto_extend_dbx.html package.xml php_dbx.h /php-src/ext/dbx/tests .cvsignore 001.phpt 002.phpt 003.phpt 004.phpt 005.phpt 006.phpt 007.phpt 008.phpt 009.phpt 010.phpt dbx_test.p dbx_test.pgsql.script dbx_test.script skipif.inc /php-src/ext/ircg .cvsignore CREDITS Makefile.frag README.txt config.m4 ircg.c ircg.php ircg_common.c ircg_scanner.c ircg_scanner.re ircg_thttpd.c php_ircg.h php_ircg_alloc.h php_ircg_cache.c php_ircg_cache.h php_ircg_conversion.c php_ircg_conversion.h php_ircg_error.c php_ircg_error.h php_ircg_formats.h php_ircg_hash.h php_ircg_lock.h php_ircg_private.h php_ircg_smart_str.h php_ircg_tokenizer.c php_ircg_tokenizer.h Modified files: /php-srcNEWS Log: - Moved ext/dbx and ext/ircg to PECL. http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1990r2=1.1991ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1990 php-src/NEWS:1.1991 --- php-src/NEWS:1.1990 Fri Jul 8 20:46:44 2005 +++ php-src/NEWSSun Jul 10 15:05:02 2005 @@ -2,6 +2,9 @@ ||| ?? ??? 2005, PHP 5.1 Beta 3 - Upgraded bundled SQLite library for PDO:SQLite to 3.2.2 (Ilia) +- Moved extensions to PECL: + . ext/dbx (Jani, Derick) + . ext/ircg(Jani, Derick) - Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql. (Ilia) - Added date_timezone_set() function to set the timezone that the date functions will use. (Derick) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/mime_magic mime_magic.c
iliaa Sun Jul 10 23:24:29 2005 EDT Modified files: /php-src/ext/mime_magic mime_magic.c Log: Compiler warning fix. http://cvs.php.net/diff.php/php-src/ext/mime_magic/mime_magic.c?r1=1.40r2=1.41ty=u Index: php-src/ext/mime_magic/mime_magic.c diff -u php-src/ext/mime_magic/mime_magic.c:1.40 php-src/ext/mime_magic/mime_magic.c:1.41 --- php-src/ext/mime_magic/mime_magic.c:1.40Tue May 24 23:05:47 2005 +++ php-src/ext/mime_magic/mime_magic.c Sun Jul 10 23:24:28 2005 @@ -15,7 +15,7 @@ | Author: Hartmut Holzgraefe [EMAIL PROTECTED] | +--+ - $Id: mime_magic.c,v 1.40 2005/05/25 03:05:47 iliaa Exp $ + $Id: mime_magic.c,v 1.41 2005/07/11 03:24:28 iliaa Exp $ This module contains a lot of stuff taken from Apache mod_mime_magic, so the license section is a little bit longer than usual: @@ -1073,6 +1073,8 @@ streampos = php_stream_tell(stream); /* remember stream position for restauration */ php_stream_seek(stream, 0, SEEK_SET); break; + default: + return -1; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php