[PHP-CVS-DAILY] cvs: php-src / ChangeLog

2008-03-25 Thread changelog
changelog   Wed Mar 26 01:31:41 2008 UTC

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewvc.cgi/php-src/ChangeLog?r1=1.2998r2=1.2999diff_format=u
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.2998 php-src/ChangeLog:1.2999
--- php-src/ChangeLog:1.2998Tue Mar 25 01:32:15 2008
+++ php-src/ChangeLog   Wed Mar 26 01:31:40 2008
@@ -1,3 +1,117 @@
+2008-03-25  Marcus Boerger  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  sapi/embed/php_embed.c:
+  MFH:
+  - Fix memory leak found by Osman
+  - Merge strlen to sizof change from CLI
+
+* sapi/embed/php_embed.c:
+  - Fix memory leak found by Osman
+  - Merge strlen to sizof change from CLI
+
+* (PHP_5_3)
+  sapi/cli/php_cli.c:
+  - MFH Use sizeof rather than strlen and cleanup
+
+* sapi/cli/php_cli.c:
+  - Use sizeof rather than strlen and cleanup
+
+2008-03-25  Ilia Alshanetsky  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  ZendEngine2/zend_compile.c:
+  Removed unused variable
+
+2008-03-25  Andrey Hristov  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  NEWS:
+  Fix typo, thank Jani :)
+
+* (PHP_5_3)
+  NEWS:
+  news entry
+
+* ext/mysqli/mysqli_nonapi.c
+  ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
+  ext/mysqlnd/mysqlnd_charset.c
+  ext/mysqlnd/mysqlnd_ps.c
+  ext/mysqlnd/mysqlnd_structs.h:
+  MFB : Fix for Bug #43832 mysqi_get_charset() doesn't expose charset 
comment
+
+* (PHP_5_3)
+  ext/mysqli/mysqli_nonapi.c
+  ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
+  ext/mysqlnd/mysqlnd_charset.c
+  ext/mysqlnd/mysqlnd_ps.c
+  ext/mysqlnd/mysqlnd_structs.h:
+  Small updates  a fix for
+  Bug #43832 mysqi_get_charset() doesn't expose charset comment
+
+2008-03-25  Felipe Pena  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  ZendEngine2/zend_compile.c
+  ZendEngine2/zend_compile.h:
+  MFH:
+  - Renamed zend_do_fetch_class_name() to zend_do_build_full_name() (It is
+  not used only for classes)
+  - Moved zend_resolve_class_name prototype to zend_compile.h
+
+2008-03-25  Christopher Jones  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  ext/oci8/oci8_statement.c:
+  revert stmt release on connection error change (and sync with PHP 6)
+
+* (PHP_5_3)
+  ext/oci8/oci8_lob.c
+  ext/oci8/tests/lob_028.phpt:
+  Remove trailing period from error thus syncing with PHP 6
+
+2008-03-25  Johannes Schlüter  [EMAIL PROTECTED]
+
+* main/logos.h:
+  - New egg
+
+2008-03-25  Dmitry Stogov  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_API.c
+  ZendEngine2/zend_API.c:
+  Optimized detection of __call and __callstatic methods.
+
+* (PHP_5_2)
+  ext/standard/tests/array/bug42177.phpt:
+  Fixed test (removed leaks becaue of cyrcular references)
+
+2008-03-25  Christopher Jones  [EMAIL PROTECTED]
+
+* ext/oci8/config.m4
+  ext/oci8/config.w32
+  ext/oci8/oci8.c
+  ext/oci8/oci8_collection.c
+  ext/oci8/oci8_interface.c
+  ext/oci8/oci8_lob.c
+  ext/oci8/oci8_statement.c
+  ext/oci8/php_oci8.h
+  ext/oci8/php_oci8_int.h
+  ext/oci8/tests/drcp_cclass1.phpt
+  ext/oci8/tests/drcp_connect1.phpt
+  main/build-defs.h.in:
+  oci8: Sync with 5.3 - version macro updates and DRCP tweaks
+
+* (PHP_5_3)
+  ext/oci8/config.m4
+  ext/oci8/config.w32
+  ext/oci8/oci8.c
+  ext/oci8/oci8_interface.c
+  ext/oci8/php_oci8.h
+  ext/oci8/php_oci8_int.h
+  main/build-defs.h.in:
+  rename PHP_OCI8_VERSION in preparation for peclversioning RFC.  Remove
+  obsolete HAVE_OCI8_ATTR_STATEMENT macro
+
 2008-03-24  Ilia Alshanetsky  [EMAIL PROTECTED]
 
 * ext/standard/tests/dir/rewinddir_basic.phpt:




[PHP-CVS-DAILY] cvs: ZendEngine2 / ChangeLog

2008-03-25 Thread changelog
changelog   Wed Mar 26 01:31:44 2008 UTC

  Modified files:  
/ZendEngine2ChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/ChangeLog?r1=1.1270r2=1.1271diff_format=u
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.1270 ZendEngine2/ChangeLog:1.1271
--- ZendEngine2/ChangeLog:1.1270Mon Mar 24 01:31:45 2008
+++ ZendEngine2/ChangeLog   Wed Mar 26 01:31:44 2008
@@ -1,3 +1,25 @@
+2008-03-25  Ilia Alshanetsky  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  zend_compile.c:
+  Removed unused variable
+
+2008-03-25  Felipe Pena  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  zend_compile.c
+  zend_compile.h:
+  MFH:
+  - Renamed zend_do_fetch_class_name() to zend_do_build_full_name() (It is
+  not used only for classes)
+  - Moved zend_resolve_class_name prototype to zend_compile.h
+
+2008-03-25  Dmitry Stogov  [EMAIL PROTECTED]
+
+* zend_API.c
+  zend_API.c:
+  Optimized detection of __call and __callstatic methods.
+
 2008-03-23  Marcus Boerger  [EMAIL PROTECTED]
 
 * tests/multibyte/.cvsignore
@@ -22364,7 +22386,7 @@
 2003-06-10  Jani Taskinen  [EMAIL PROTECTED]
 
 * zend_multiply.h:
-  - Missing $Id: ChangeLog,v 1.1270 2008/03/24 01:31:45 changelog Exp $ tag
+  - Missing $Id: ChangeLog,v 1.1271 2008/03/26 01:31:44 changelog Exp $ tag
 
 2003-06-10  James Cox  [EMAIL PROTECTED]
 
@@ -24088,7 +24110,7 @@
   zend_types.h
   zend_variables.c
   zend_variables.h:
-  - Added some missing CVS $Id: ChangeLog,v 1.1270 2008/03/24 01:31:45 
changelog Exp $ tags, headers and footers.
+  - Added some missing CVS $Id: ChangeLog,v 1.1271 2008/03/26 01:31:44 
changelog Exp $ tags, headers and footers.
 
 2003-01-30  Ilia Alshanetsky  [EMAIL PROTECTED]
 




[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array bug42177.phpt

2008-03-25 Thread Dmitry Stogov
dmitry  Tue Mar 25 07:01:23 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   bug42177.phpt 
  Log:
  Fixed test (removed leaks becaue of cyrcular references)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/bug42177.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/array/bug42177.phpt
diff -u php-src/ext/standard/tests/array/bug42177.phpt:1.1.2.1 
php-src/ext/standard/tests/array/bug42177.phpt:1.1.2.2
--- php-src/ext/standard/tests/array/bug42177.phpt:1.1.2.1  Wed Mar 12 
19:13:00 2008
+++ php-src/ext/standard/tests/array/bug42177.phpt  Tue Mar 25 07:01:22 2008
@@ -19,6 +19,7 @@
 $a2 = array( 'key1' = $a1 );
 $a1 = array_merge_recursive( $a1, $a2 );
 $a1 = array_merge_recursive( $a1, $a2 );
+$a1['key1'] = null;
 unset( $a1, $a2 );
 
 $x = 'foo';



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /main logos.h

2008-03-25 Thread Johannes Schlüter
johannesTue Mar 25 17:17:43 2008 UTC

  Modified files:  
/php-src/main   logos.h 
  Log:
  - New egg
  http://cvs.php.net/viewvc.cgi/php-src/main/logos.h?r1=1.20r2=1.21diff_format=u
Index: php-src/main/logos.h
diff -u php-src/main/logos.h:1.20 php-src/main/logos.h:1.21
--- php-src/main/logos.h:1.20   Mon Dec 31 07:12:18 2007
+++ php-src/main/logos.hTue Mar 25 17:17:42 2008
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: logos.h,v 1.20 2007/12/31 07:12:18 sebastian Exp $ */
+/* $Id: logos.h,v 1.21 2008/03/25 17:17:42 johannes Exp $ */
 
 #define CONTEXT_TYPE_IMAGE_GIF Content-Type: image/gif
 
@@ -494,383 +494,587 @@
 
 static const unsigned char php_egg_logo[] = {
 71,  73,  70,  56,  57,  97, 120,   0,  67,   0, 
-   247,   0,   0,   0, 255,   0, 107, 114, 178,   0, 
- 0,   0,  31,  31,  31, 255, 255, 255, 106, 113, 
-   176,  63,  63,  63, 127, 127, 127, 106, 112, 174, 
-   191, 191, 191, 105, 111, 171, 223, 223, 223, 239, 
-   239, 239, 144, 149, 197, 106, 111, 173, 245, 246, 
-   250, 105, 110, 170, 218, 219, 235,  47,  47,  47, 
-   162, 166, 206,  35,  36,  40, 153, 158, 202,  95, 
-95,  95, 175, 175, 175,  88,  93, 141, 159, 159, 
-   159, 116, 122, 182, 125, 131, 187, 143, 143, 143, 
-38,  38,  41, 104, 108, 167, 171, 175, 211, 105, 
-   109, 168, 102, 102, 153, 104, 108, 165,  45,  46, 
-58, 181, 184, 216, 111, 111, 111, 134, 140, 192, 
-   102, 108, 168,  79,  79,  79, 199, 202, 226,  40, 
-41,  49,  92,  98, 150,  53,  53,  63, 236, 237, 
-   245, 130, 130, 171, 122, 122, 160, 104, 107, 163, 
-50,  51,  67,  45,  45,  52, 207, 207, 207,  69, 
-72, 104,  15,  15,  15,  61,  61,  74, 227, 228, 
-   240,  59,  62,  86, 103, 106, 162, 107, 107, 139, 
-73,  77, 113, 102, 103, 156,  54,  56,  76,  97, 
-   103, 159, 137, 137, 182,  35,  35,  38, 190, 193, 
-   221, 145, 145, 193, 103, 105, 159,  78,  82, 122, 
-76,  76,  95, 147, 148, 200,  92,  92, 117, 105, 
-   105, 156, 103, 105, 160, 150, 150, 202,  64,  67, 
-95, 114, 114, 149, 108, 108, 159, 143, 143, 194, 
-84,  84, 106, 140, 140, 191, 102, 104, 157,  48, 
-48,  61,  27,  29,  42, 114, 114, 165,  83,  88, 
-   132, 153, 153, 204, 121, 126, 186, 127, 127, 178, 
-   208, 210, 230, 149, 149, 200, 146, 146, 197, 141, 
-   143, 197,  55,  55,  67, 144, 145, 199, 133, 133, 
-   184, 124, 124, 175, 110, 115, 171, 130, 133, 191, 
-88,  91, 137,  86,  92, 144, 154, 156, 172,  87, 
-92, 139,  85,  86, 125, 118, 123, 184, 121, 122, 
-   172, 124, 128, 187,  82,  86, 130,  39,  39,  46, 
-99,  99, 128,  69,  69,  85,  97, 101, 153,  75, 
-75, 107, 115, 121, 182, 135, 138, 194, 101, 107, 
-   165,  82,  84, 101, 102, 102, 140,  53,  57,  89, 
-69,  71, 101, 137, 137, 188, 109, 116, 179, 130, 
-   130, 182,  57,  57,  76,  93,  99, 155, 117, 117, 
-   168,  62,  63,  86,  84,  84, 122,  79,  79, 114, 
-   112, 117, 177,  58,  58,  71, 127, 131, 189, 106, 
-   106, 150,  76,  76, 101, 134, 135, 187,  20,  20, 
-31,  66,  71, 111, 125, 129, 182, 172, 173, 180, 
-86,  88, 131, 229, 230, 234, 108, 112, 171, 100, 
-   105, 161, 161, 165, 203,  53,  53,  70,  95,  97, 
-   146,  58,  60,  81, 217, 219, 234, 195, 196, 208, 
-82,  85, 125, 112, 118, 181,  82,  82, 106, 114, 
-   117, 175, 154, 157, 195, 134, 134, 179, 111, 111, 
-   162,   6,   7,  11, 110, 111, 146,  93,  93, 138, 
-77,  79, 116, 115, 119, 179, 103, 108, 161,  60, 
-64, 100,  98,  98, 145,  40,  40,  47,  51,  51, 
-63,  69,  69,  95,  73,  78, 122, 197, 198, 202, 
-54,  54,  58,  13,  14,  22, 108, 114, 174, 149, 
-   152, 184, 101, 108, 167,  88,  88, 130, 106, 108, 
-   162,  86,  91, 141,  84,  84, 116,  86,  86,  90, 
-   129, 131, 186, 132, 135, 181, 160, 163, 183, 211, 
-   212, 224,  91,  91, 123, 109, 109, 117, 104, 104, 
-   135,  86,  86, 115,  90,  92, 108,  81,  83, 122, 
-   103, 106, 130,  70,  70,  99, 121, 126, 170, 139, 
-   139, 186,  73,  74,  94, 109, 109, 148, 139, 140, 
-   189, 135, 138, 162, 176, 179, 199, 115, 115, 115, 
-   106, 106, 144,  59,  63,  98,  67,  69,  96, 241, 
-   241, 241, 102, 105, 149, 120, 120, 162,  68,  68, 
-90,  89,  89, 115,  51,  52,  79, 113, 113, 152, 
-33,  35,  55, 189, 190, 215,  79,  79, 104, 213, 
-   214, 218,  94,  95, 142, 163, 164, 176,  86,  89, 
-   133, 112, 112, 156,  80,  81, 118,  63,  65,  90, 
-   102, 103, 124, 126, 129, 157,  72,  72,  98, 150, 
-   150, 154,  72,  74, 100, 112, 112, 151, 138, 139, 
-   192, 122, 125, 180,  49,  50,  64,  78,  78, 110, 
-   119, 119, 157, 125, 126, 174,  77,  81, 119, 125, 
-   126, 180,  56,  56,  

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/oci8 oci8_statement.c

2008-03-25 Thread Christopher Jones
sixdTue Mar 25 17:38:07 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/oci8   oci8_statement.c 
  Log:
  revert stmt release on connection error change (and sync with PHP 6)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_statement.c?r1=1.7.2.14.2.28.2.6r2=1.7.2.14.2.28.2.7diff_format=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.28.2.6 
php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.28.2.7
--- php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.28.2.6 Sat Mar 22 01:27:50 2008
+++ php-src/ext/oci8/oci8_statement.c   Tue Mar 25 17:38:07 2008
@@ -25,7 +25,7 @@
+--+
 */
 
-/* $Id: oci8_statement.c,v 1.7.2.14.2.28.2.6 2008/03/22 01:27:50 sixd Exp $ */
+/* $Id: oci8_statement.c,v 1.7.2.14.2.28.2.7 2008/03/25 17:38:07 sixd Exp $ */
 
 
 #ifdef HAVE_CONFIG_H
@@ -82,7 +82,7 @@
connection-errcode = php_oci_error(connection-err, 
connection-errcode TSRMLS_CC);
 
 #if HAVE_OCI_STMT_PREPARE2
-   PHP_OCI_CALL(OCIStmtRelease, (statement-stmt, 
statement-err, NULL, 0, OCI_STRLS_CACHE_DELETE));
+   PHP_OCI_CALL(OCIStmtRelease, (statement-stmt, 
statement-err, NULL, 0, statement-errcode ? OCI_STRLS_CACHE_DELETE : 
OCI_DEFAULT));
PHP_OCI_CALL(OCIHandleFree,(statement-err, 
OCI_HTYPE_ERROR));
 #else
PHP_OCI_CALL(OCIHandleFree,(statement-stmt, 
OCI_HTYPE_STMT));



-- 
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/mysqli mysqli_nonapi.c /ext/mysqli/tests mysqli_stmt_datatype_change.phpt /ext/mysqlnd mysqlnd_charset.c mysqlnd_ps.c mysqlnd_structs.h

2008-03-25 Thread Andrey Hristov
andrey  Tue Mar 25 18:27:17 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/mysqli mysqli_nonapi.c 
/php-src/ext/mysqli/tests   mysqli_stmt_datatype_change.phpt 
/php-src/ext/mysqlndmysqlnd_charset.c mysqlnd_ps.c 
mysqlnd_structs.h 
  Log:
  Small updates  a fix for
  Bug #43832 mysqi_get_charset() doesn't expose charset comment
  
  http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli_nonapi.c?r1=1.54.2.7.2.5.2.9r2=1.54.2.7.2.5.2.10diff_format=u
Index: php-src/ext/mysqli/mysqli_nonapi.c
diff -u php-src/ext/mysqli/mysqli_nonapi.c:1.54.2.7.2.5.2.9 
php-src/ext/mysqli/mysqli_nonapi.c:1.54.2.7.2.5.2.10
--- php-src/ext/mysqli/mysqli_nonapi.c:1.54.2.7.2.5.2.9 Tue Mar 18 16:57:31 2008
+++ php-src/ext/mysqli/mysqli_nonapi.c  Tue Mar 25 18:27:17 2008
@@ -17,7 +17,7 @@
   |  Ulf Wendel [EMAIL PROTECTED]
 |
   +--+
 
-  $Id: mysqli_nonapi.c,v 1.54.2.7.2.5.2.9 2008/03/18 16:57:31 andrey Exp $ 
+  $Id: mysqli_nonapi.c,v 1.54.2.7.2.5.2.10 2008/03/25 18:27:17 andrey Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -687,7 +687,7 @@
 {
MY_MYSQL*mysql;
zval*mysql_link;
-   char*name = NULL, *collation = 
NULL, *dir = NULL;
+   const char  *name = NULL, *collation = 
NULL, *dir = NULL, *comment = NULL;
uintminlength, maxlength, number, 
state;
 #if !defined(MYSQLI_USE_MYSQLND)
MY_CHARSET_INFO cs;
@@ -711,6 +711,7 @@
maxlength = cs.mbmaxlen;
number = cs.number;
state = cs.state;
+   comment = cs.comment;
 #else
cs = mysql-mysql-charset;
name = cs-name;
@@ -718,6 +719,7 @@
minlength = cs-char_minlen;
maxlength = cs-char_maxlen;
number = cs-nr;
+   comment = cs-comment;
state = 1;  /* all charsets are compiled in */
 #endif
 
@@ -728,6 +730,7 @@
add_property_long(return_value, max_length, maxlength);
add_property_long(return_value, number, number);
add_property_long(return_value, state, state);
+   add_property_string(return_value, comment, (comment) ? (char 
*)comment : , 1);
 }
 /* }}} */
 #endif
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
diff -u php-src/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt:1.1.2.2 
php-src/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt:1.1.2.3
--- php-src/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt:1.1.2.2   Thu Mar 
20 14:03:30 2008
+++ php-src/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt   Tue Mar 25 
18:27:17 2008
@@ -1,5 +1,5 @@
 --TEST--
-mysqli_stmt_bind_param() - playing with references
+Playing with datatype change between prepare and execute
 --SKIPIF--
 ?php
 require_once('skipif.inc');
@@ -28,7 +28,6 @@
$c1-query(create table type_change(a int, b char(10)));
$c1-query(insert into type_change values (1, 'one'), (2, 'two')); 
$s1 = $c1-prepare(select a from type_change order by a);
-   var_dump($s1);
var_dump($s1-execute(), $s1-bind_result($col1));
echo  Row 1\n;
var_dump($s1-fetch());
@@ -58,26 +57,6 @@
echo done!;
 ?
 --EXPECTF--
-object(mysqli_stmt)#%d (%d) {
-  [affected_rows]=
-  int(0)
-  [insert_id]=
-  int(0)
-  [num_rows]=
-  int(0)
-  [param_count]=
-  int(0)
-  [field_count]=
-  int(1)
-  [errno]=
-  int(0)
-  [error]=
-  string(0) 
-  [sqlstate]=
-  string(5) 0
-  [id]=
-  int(1)
-}
 bool(true)
 bool(true)
  Row 1
@@ -104,26 +83,6 @@
 
 done!
 --UEXPECTF--
-object(mysqli_stmt)#%d (%d) {
-  [uaffected_rows]=
-  int(0)
-  [uinsert_id]=
-  int(0)
-  [unum_rows]=
-  int(0)
-  [uparam_count]=
-  int(0)
-  [ufield_count]=
-  int(1)
-  [uerrno]=
-  int(0)
-  [uerror]=
-  unicode(0) 
-  [usqlstate]=
-  unicode(5) 0
-  [uid]=
-  int(1)
-}
 bool(true)
 bool(true)
  Row 1
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqlnd/mysqlnd_charset.c?r1=1.2.2.5r2=1.2.2.6diff_format=u
Index: php-src/ext/mysqlnd/mysqlnd_charset.c
diff -u php-src/ext/mysqlnd/mysqlnd_charset.c:1.2.2.5 
php-src/ext/mysqlnd/mysqlnd_charset.c:1.2.2.6
--- php-src/ext/mysqlnd/mysqlnd_charset.c:1.2.2.5   Wed Jan 23 19:11:28 2008
+++ php-src/ext/mysqlnd/mysqlnd_charset.c   Tue Mar 25 18:27:17 2008
@@ -295,136 +295,136 @@
 /* {{{ mysqlnd_charsets */
 const MYSQLND_CHARSET mysqlnd_charsets[] =
 {
-   {   1, big5,big5_chinese_ci, 1, 2, mysqlnd_mbcharlen_big5, 
check_mb_big5},
-   {   3, dec8, dec8_swedisch_ci, 1, 1, NULL, NULL},
-   {   4, cp850, cp850_general_ci, 1, 1, NULL, NULL},
-   {   6, hp8, hp8_english_ci, 1, 1, NULL, NULL},
-   {  

[PHP-CVS] cvs: php-src(PHP_5_3) / NEWS

2008-03-25 Thread Andrey Hristov
andrey  Tue Mar 25 20:00:19 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-srcNEWS 
  Log:
  Fix typo, thank Jani :)
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.150r2=1.2027.2.547.2.965.2.151diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.150 
php-src/NEWS:1.2027.2.547.2.965.2.151
--- php-src/NEWS:1.2027.2.547.2.965.2.150   Tue Mar 25 18:30:56 2008
+++ php-src/NEWSTue Mar 25 20:00:18 2008
@@ -151,7 +151,7 @@
   (Nuno, Scott)
 - Fixed bug #43960 (strtotime() returns timestamp in the future when given a
   bogus string).
-- Fixed bug #43832 (mysqi_get_charset() doesn't expose charset comment).
+- Fixed bug #43832 (mysqli_get_charset() doesn't expose charset comment).
   (Andrey)
 - Fixed bug #43808 (date_create never fails (even when it should)). (Derick)
 - Fixed bug #43527 (DateTime created from a timestamp reports environment



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /sapi/cli php_cli.c

2008-03-25 Thread Marcus Boerger
helly   Tue Mar 25 21:58:03 2008 UTC

  Modified files:  
/php-src/sapi/cli   php_cli.c 
  Log:
  - Use sizeof rather than strlen and cleanup
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/cli/php_cli.c?r1=1.187r2=1.188diff_format=u
Index: php-src/sapi/cli/php_cli.c
diff -u php-src/sapi/cli/php_cli.c:1.187 php-src/sapi/cli/php_cli.c:1.188
--- php-src/sapi/cli/php_cli.c:1.187Wed Mar 19 16:37:49 2008
+++ php-src/sapi/cli/php_cli.c  Tue Mar 25 21:58:03 2008
@@ -20,7 +20,7 @@
+--+
 */
 
-/* $Id: php_cli.c,v 1.187 2008/03/19 16:37:49 rasmus Exp $ */
+/* $Id: php_cli.c,v 1.188 2008/03/25 21:58:03 helly Exp $ */
 
 #include php.h
 #include php_globals.h
@@ -115,13 +115,13 @@
PHP_MODE_SHOW_INI_CONFIG
 };
 
-#define HARDCODED_INI  \
-   html_errors=0\n   \
-   register_argc_argv=1\n\
-   implicit_flush=1\n\
-   output_buffering=0\n  \
-   max_execution_time=0\n\
-   max_input_time=-1\n
+const char HARDCODED_INI[] =
+   html_errors=0\n
+   register_argc_argv=1\n
+   implicit_flush=1\n
+   output_buffering=0\n
+   max_execution_time=0\n
+   max_input_time=-1\n\0;
 
 static char *php_optarg = NULL;
 static int php_optind = 1;
@@ -671,10 +671,9 @@
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode 
be binary */
 #endif
 
-   ini_entries_len = strlen(HARDCODED_INI);
-   cli_sapi_module.ini_entries = malloc(ini_entries_len+2);
-   memcpy(cli_sapi_module.ini_entries, HARDCODED_INI, ini_entries_len+1);
-   cli_sapi_module.ini_entries[ini_entries_len+1] = 0;
+   ini_entries_len = sizeof(HARDCODED_INI)-2;
+   cli_sapi_module.ini_entries = malloc(sizeof(HARDCODED_INI));
+   memcpy(cli_sapi_module.ini_entries, HARDCODED_INI, 
sizeof(HARDCODED_INI));
 
while ((c = php_getopt(argc, argv, OPTIONS, php_optarg, php_optind, 
0, 2))!=-1) {
switch (c) {



-- 
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) /sapi/cli php_cli.c

2008-03-25 Thread Marcus Boerger
helly   Tue Mar 25 21:58:29 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/sapi/cli   php_cli.c 
  Log:
  - MFH Use sizeof rather than strlen and cleanup
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/cli/php_cli.c?r1=1.129.2.13.2.22.2.7r2=1.129.2.13.2.22.2.8diff_format=u
Index: php-src/sapi/cli/php_cli.c
diff -u php-src/sapi/cli/php_cli.c:1.129.2.13.2.22.2.7 
php-src/sapi/cli/php_cli.c:1.129.2.13.2.22.2.8
--- php-src/sapi/cli/php_cli.c:1.129.2.13.2.22.2.7  Tue Mar 18 22:23:21 2008
+++ php-src/sapi/cli/php_cli.c  Tue Mar 25 21:58:29 2008
@@ -20,7 +20,7 @@
+--+
 */
 
-/* $Id: php_cli.c,v 1.129.2.13.2.22.2.7 2008/03/18 22:23:21 rasmus Exp $ */
+/* $Id: php_cli.c,v 1.129.2.13.2.22.2.8 2008/03/25 21:58:29 helly Exp $ */
 
 #include php.h
 #include php_globals.h
@@ -111,13 +111,13 @@
 #define PHP_MODE_REFLECTION_EXT_INFO11
 #define PHP_MODE_SHOW_INI_CONFIG12
 
-#define HARDCODED_INI  \
-   html_errors=0\n   \
-   register_argc_argv=1\n\
-   implicit_flush=1\n\
-   output_buffering=0\n  \
-   max_execution_time=0\n\
-   max_input_time=-1\n
+const char HARDCODED_INI[] =
+   html_errors=0\n
+   register_argc_argv=1\n
+   implicit_flush=1\n
+   output_buffering=0\n
+   max_execution_time=0\n
+   max_input_time=-1\n\0;
 
 static char *php_optarg = NULL;
 static int php_optind = 1;
@@ -659,10 +659,9 @@
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode 
be binary */
 #endif
 
-   ini_entries_len = strlen(HARDCODED_INI);
-   cli_sapi_module.ini_entries = malloc(ini_entries_len+2);
-   memcpy(cli_sapi_module.ini_entries, HARDCODED_INI, ini_entries_len+1);
-   cli_sapi_module.ini_entries[ini_entries_len+1] = 0;
+   ini_entries_len = sizeof(HARDCODED_INI)-2;
+   cli_sapi_module.ini_entries = malloc(sizeof(HARDCODED_INI));
+   memcpy(cli_sapi_module.ini_entries, HARDCODED_INI, 
sizeof(HARDCODED_INI));
 
while ((c = php_getopt(argc, argv, OPTIONS, php_optarg, php_optind, 
0, 2))!=-1) {
switch (c) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /sapi/embed php_embed.c

2008-03-25 Thread Marcus Boerger
helly   Tue Mar 25 22:04:58 2008 UTC

  Modified files:  
/php-src/sapi/embed php_embed.c 
  Log:
  - Fix memory leak found by Osman
  - Merge strlen to sizof change from CLI
  
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/embed/php_embed.c?r1=1.24r2=1.25diff_format=u
Index: php-src/sapi/embed/php_embed.c
diff -u php-src/sapi/embed/php_embed.c:1.24 php-src/sapi/embed/php_embed.c:1.25
--- php-src/sapi/embed/php_embed.c:1.24 Wed Mar 19 16:37:49 2008
+++ php-src/sapi/embed/php_embed.c  Tue Mar 25 22:04:58 2008
@@ -15,7 +15,7 @@
| Author: Edin Kadribasic [EMAIL PROTECTED]  |
+--+
 */
-/* $Id: php_embed.c,v 1.24 2008/03/19 16:37:49 rasmus Exp $ */
+/* $Id: php_embed.c,v 1.25 2008/03/25 22:04:58 helly Exp $ */
 
 #include php_embed.h
 #include ext/standard/dl.h
@@ -25,13 +25,13 @@
 #include fcntl.h
 #endif
 
-#define HARDCODED_INI  \
-   html_errors=0\n   \
-   register_argc_argv=1\n\
-   implicit_flush=1\n\
-   output_buffering=0\n  \
-   max_execution_time=0\n\
-   max_input_time=-1\n
+const char HARDCODED_INI[] =
+   html_errors=0\n
+   register_argc_argv=1\n
+   implicit_flush=1\n
+   output_buffering=0\n
+   max_execution_time=0\n
+   max_input_time=-1\n\0;
 
 static char* php_embed_read_cookies(TSRMLS_D)
 {
@@ -158,7 +158,6 @@
 #ifdef ZTS
void ***tsrm_ls = NULL;
 #endif
-   int ini_entries_len = 0;
 
 #ifdef HAVE_SIGNAL_H
 #if defined(SIGPIPE)  defined(SIG_IGN)
@@ -171,6 +170,14 @@
 #endif
 #endif
 
+#ifdef ZTS
+  tsrm_startup(1, 1, 0, NULL);
+  tsrm_ls = ts_resource(0);
+  *ptsrm_ls = tsrm_ls;
+#endif
+
+  sapi_startup(php_embed_module);
+
 #ifdef PHP_WIN32
   _fmode = _O_BINARY;  /*sets default for file streams to 
binary */
   setmode(_fileno(stdin), O_BINARY);   /* make the stdio mode be 
binary */
@@ -178,21 +185,11 @@
   setmode(_fileno(stderr), O_BINARY);  /* make the stdio mode be 
binary */
 #endif
 
-#ifdef ZTS
-  tsrm_startup(1, 1, 0, NULL);
-  tsrm_ls = ts_resource(0);
-  *ptsrm_ls = tsrm_ls;
-#endif
+  php_embed_module.ini_entries = malloc(sizeof(HARDCODED_INI));
+  memcpy(php_embed_module.ini_entries, HARDCODED_INI, sizeof(HARDCODED_INI));
 
   php_embed_module.additional_functions = additional_functions;
 
-  ini_entries_len = strlen(HARDCODED_INI);
-  php_embed_module.ini_entries = malloc(ini_entries_len+2);
-  memcpy(php_embed_module.ini_entries, HARDCODED_INI, ini_entries_len+1);
-  php_embed_module.ini_entries[ini_entries_len+1] = 0;
-
-  sapi_startup(php_embed_module);
-
   if (argv) {
php_embed_module.executable_location = argv[0];
   }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php