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

2003-10-14 Thread changelog
changelog   Tue Oct 14 20:33:56 2003 EDT

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.1416 php-src/ChangeLog:1.1417
--- php-src/ChangeLog:1.1416Mon Oct 13 20:33:26 2003
+++ php-src/ChangeLog   Tue Oct 14 20:33:52 2003
@@ -1,3 +1,53 @@
+2003-10-14  Andi Gutmans  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_mm.c:
+  - Argh, the suffering copypaste can cause
+
+* ZendEngine2/zend_alloc.c:
+  - Fix compile problem.
+
+* ZendEngine2/zend_mm.c:
+  - Fix the fix by making sure the new block is in the right free list.
+
+2003-10-14  Stanislav Malyshev  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_execute_API.c:
+  The freed one is a hashtable - may matter if Hashtables are allocated
+  differently
+
+2003-10-14  Andi Gutmans  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_mm.c:
+  - Support merging free block which was created by reallocing to smaller
+  - size. This should fix some performance issues. This code is still not
+  - thoroughly tested.
+
+2003-10-14  Sascha Schumann  [EMAIL PROTECTED]
+
+* sapi/thttpd/thttpd_patch
+  sapi/thttpd/thttpd_patch
+  sapi/thttpd/thttpd_patch:
+  Embed date of last modification
+
+2003-10-14  Uwe Steinmann  [EMAIL PROTECTED]
+
+* ext/dbase/dbase.c:
+  - limit writing of field data to field len + 1
+This fixed many memory overrun errors which appeared
+   in several scripts when writing a record.
+
+2003-10-14  Ilia Alshanetsky  [EMAIL PROTECTED]
+
+* main/php_variables.c:
+  Fixed bug #25836 (last key of multi-dimensional array passed via GPC
+  not being escaped when magic_quotes_gpc is on).
+
+* (PHP_4_3)
+  NEWS
+  main/php_variables.c:
+  MFH: Fixed bug #25836 (last key of multi-dimensional array passed via GPC
+  not being escaped when magic_quotes_gpc is on).
+
 2003-10-13  Wez Furlong  [EMAIL PROTECTED]
 
 * (PHP_4_3)


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

2003-10-14 Thread changelog
changelog   Tue Oct 14 20:34:02 2003 EDT

  Modified files:  
/ZendEngine2ChangeLog 
  Log:
  ChangeLog update
  
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.315 ZendEngine2/ChangeLog:1.316
--- ZendEngine2/ChangeLog:1.315 Thu Oct  9 20:33:53 2003
+++ ZendEngine2/ChangeLog   Tue Oct 14 20:34:01 2003
@@ -1,3 +1,27 @@
+2003-10-14  Andi Gutmans  [EMAIL PROTECTED]
+
+* zend_mm.c:
+  - Argh, the suffering copypaste can cause
+
+* zend_alloc.c:
+  - Fix compile problem.
+
+* zend_mm.c:
+  - Fix the fix by making sure the new block is in the right free list.
+
+2003-10-14  Stanislav Malyshev  [EMAIL PROTECTED]
+
+* zend_execute_API.c:
+  The freed one is a hashtable - may matter if Hashtables are allocated
+  differently
+
+2003-10-14  Andi Gutmans  [EMAIL PROTECTED]
+
+* zend_mm.c:
+  - Support merging free block which was created by reallocing to smaller
+  - size. This should fix some performance issues. This code is still not
+  - thoroughly tested.
+
 2003-10-09  Zeev Suraski  [EMAIL PROTECTED]
 
 * zend_compile.c
@@ -1735,7 +1759,7 @@
 2003-06-10  Jani Taskinen  [EMAIL PROTECTED]
 
 * zend_multiply.h:
-  - Missing $Id: ChangeLog,v 1.315 2003/10/10 00:33:53 changelog Exp $ tag
+  - Missing $Id: ChangeLog,v 1.316 2003/10/15 00:34:01 changelog Exp $ tag
 
 2003-06-10  James Cox  [EMAIL PROTECTED]
 
@@ -3459,7 +3483,7 @@
   zend_types.h
   zend_variables.c
   zend_variables.h:
-  - Added some missing CVS $Id: ChangeLog,v 1.315 2003/10/10 00:33:53 changelog 
Exp $ tags, headers and footers.
+  - Added some missing CVS $Id: ChangeLog,v 1.316 2003/10/15 00:34:01 changelog 
Exp $ tags, headers and footers.
 
 2003-01-30  Ilia Alshanetsky  [EMAIL PROTECTED]
 


[PHP-CVS] cvs: php-src /ext/dbase dbase.c

2003-10-14 Thread Uwe Steinmann
steinm  Tue Oct 14 03:49:35 2003 EDT

  Modified files:  
/php-src/ext/dbase  dbase.c 
  Log:
  - limit writing of field data to field len + 1
This fixed many memory overrun errors which appeared
in several scripts when writing a record.
  
  
Index: php-src/ext/dbase/dbase.c
diff -u php-src/ext/dbase/dbase.c:1.69 php-src/ext/dbase/dbase.c:1.70
--- php-src/ext/dbase/dbase.c:1.69  Sun Sep 21 09:17:20 2003
+++ php-src/ext/dbase/dbase.c   Tue Oct 14 03:49:34 2003
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: dbase.c,v 1.69 2003/09/21 13:17:20 steinm Exp $ */
+/* $Id: dbase.c,v 1.70 2003/10/14 07:49:34 steinm Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include config.h
@@ -294,7 +294,7 @@
tmp = **field;
zval_copy_ctor(tmp);
convert_to_string(tmp);
-   sprintf(t_cp, cur_f-db_format, Z_STRVAL(tmp));
+   snprintf(t_cp, cur_f-db_flen+1, cur_f-db_format, Z_STRVAL(tmp));
zval_dtor(tmp); 
t_cp += cur_f-db_flen;
}
@@ -306,7 +306,7 @@
RETURN_FALSE;
}
 
-put_dbf_info(dbh);
+   put_dbf_info(dbh);
efree(cp);
 
RETURN_TRUE;
@@ -361,7 +361,7 @@
RETURN_FALSE;
}
convert_to_string_ex(field);
-   sprintf(t_cp, cur_f-db_format, Z_STRVAL_PP(field)); 
+   snprintf(t_cp, cur_f-db_flen+1, cur_f-db_format, 
Z_STRVAL_PP(field)); 
t_cp += cur_f-db_flen;
}
 

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



[PHP-CVS] cvs: php-src(PHP_4_3) /sapi/thttpd thttpd_patch

2003-10-14 Thread Sascha Schumann
sas Tue Oct 14 04:11:19 2003 EDT

  Modified files:  (Branch: PHP_4_3)
/php-src/sapi/thttpdthttpd_patch 
  Log:
  Embed date of last modification
  
  
Index: php-src/sapi/thttpd/thttpd_patch
diff -u php-src/sapi/thttpd/thttpd_patch:1.31.2.13 
php-src/sapi/thttpd/thttpd_patch:1.31.2.14
--- php-src/sapi/thttpd/thttpd_patch:1.31.2.13  Sat Sep 20 08:44:13 2003
+++ php-src/sapi/thttpd/thttpd_patchTue Oct 14 04:11:18 2003
@@ -2371,7 +2371,7 @@
  #define _VERSION_H_
  
 -#define SERVER_SOFTWARE thttpd/2.21b 23apr2001
-+#define SERVER_SOFTWARE thttpd/2.21b 23apr2001 Built-in PHP
++#define SERVER_SOFTWARE thttpd/2.21b PHP/20030920
  #define SERVER_ADDRESS http://www.acme.com/software/thttpd/;
  
  #endif /* _VERSION_H_ */

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



[PHP-CVS] cvs: php-src /sapi/thttpd thttpd_patch

2003-10-14 Thread Sascha Schumann
sas Tue Oct 14 04:11:38 2003 EDT

  Modified files:  
/php-src/sapi/thttpdthttpd_patch 
  Log:
  Embed date of last modification
  
  
Index: php-src/sapi/thttpd/thttpd_patch
diff -u php-src/sapi/thttpd/thttpd_patch:1.44 php-src/sapi/thttpd/thttpd_patch:1.45
--- php-src/sapi/thttpd/thttpd_patch:1.44   Sat Sep 20 08:45:05 2003
+++ php-src/sapi/thttpd/thttpd_patchTue Oct 14 04:11:37 2003
@@ -2371,7 +2371,7 @@
  #define _VERSION_H_
  
 -#define SERVER_SOFTWARE thttpd/2.21b 23apr2001
-+#define SERVER_SOFTWARE thttpd/2.21b 23apr2001 Built-in PHP
++#define SERVER_SOFTWARE thttpd/2.21b PHP/20030920
  #define SERVER_ADDRESS http://www.acme.com/software/thttpd/;
  
  #endif /* _VERSION_H_ */

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



[PHP-CVS] cvs: php-src(PHP_4) /sapi/thttpd thttpd_patch

2003-10-14 Thread Sascha Schumann
sas Tue Oct 14 04:12:01 2003 EDT

  Modified files:  (Branch: PHP_4)
/php-src/sapi/thttpdthttpd_patch 
  Log:
  Embed date of last modification
  
  
Index: php-src/sapi/thttpd/thttpd_patch
diff -u php-src/sapi/thttpd/thttpd_patch:1.31.2.12.2.1 
php-src/sapi/thttpd/thttpd_patch:1.31.2.12.2.2
--- php-src/sapi/thttpd/thttpd_patch:1.31.2.12.2.1  Sat Sep 20 08:44:51 2003
+++ php-src/sapi/thttpd/thttpd_patchTue Oct 14 04:12:00 2003
@@ -2371,7 +2371,7 @@
  #define _VERSION_H_
  
 -#define SERVER_SOFTWARE thttpd/2.21b 23apr2001
-+#define SERVER_SOFTWARE thttpd/2.21b 23apr2001 Built-in PHP
++#define SERVER_SOFTWARE thttpd/2.21b PHP/20030920
  #define SERVER_ADDRESS http://www.acme.com/software/thttpd/;
  
  #endif /* _VERSION_H_ */

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



[PHP-CVS] cvs: CVSROOT / avail

2003-10-14 Thread Rasmus Lerdorf
rasmus  Tue Oct 14 14:17:37 2003 EDT

  Modified files:  
/CVSROOTavail 
  Log:
  pecl/lzf karma for mg
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.759 CVSROOT/avail:1.760
--- CVSROOT/avail:1.759 Sat Oct 11 16:05:50 2003
+++ CVSROOT/avail   Tue Oct 14 14:17:36 2003
@@ -184,6 +184,7 @@
 avail|schst|pear/Net_Server
 avail|mroch|pear/XML_RPC
 avail|djg|pear/File_Ogg
+avail|mg|pecl/lzf
 
 # Curl modules
 
avail|bagder,sterling,crisb,linus_nielsen|curl,curl-cpp,curl-java,curl-perl,curl-php,curl-www

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



[PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/standard basic_functions.c

2003-10-14 Thread Wez Furlong
wez Tue Oct 14 20:14:38 2003 EDT

  Modified files:  (Branch: PHP_4_3)
/php-srcNEWS 
/php-src/ext/standard   basic_functions.c 
  Log:
  Fix bug #25825. tzset() was not called when resetting the TZ env var.
  In addition, fix a slight error (made by sniper!) which would trigger
  tzset() to be called for any env var beginning with TZ, and not just
  TZ itself.
  
  
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.436 php-src/NEWS:1.1247.2.437
--- php-src/NEWS:1.1247.2.436   Mon Oct 13 23:48:08 2003
+++ php-src/NEWSTue Oct 14 20:14:36 2003
@@ -1,6 +1,8 @@
 PHP 4  NEWS
 |||
 ?? Oct 2003, Version 4.3.4RC2
+- Fixed bug #25825 (tzset() was not called to reset libc environment
+  on request shutdown). (Wez)
 - Fixed multibyte regex engine to properly handle .* pattern under
   POSIX compatible mode. (K.Kosako kosako at sofnec.co.jp, Moriyoshi)
 - Fixed bug #25836 (last key of multi-dimensional array passed via GPC not
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.543.2.22 
php-src/ext/standard/basic_functions.c:1.543.2.23
--- php-src/ext/standard/basic_functions.c:1.543.2.22   Mon Sep 29 10:02:55 2003
+++ php-src/ext/standard/basic_functions.c  Tue Oct 14 20:14:37 2003
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.543.2.22 2003/09/29 14:02:55 stas Exp $ */
+/* $Id: basic_functions.c,v 1.543.2.23 2003/10/15 00:14:37 wez Exp $ */
 
 #include php.h
 #include php_streams.h
@@ -950,6 +950,12 @@
}
 # endif
}
+   /* don't forget to reset the various libc globals that
+* we might have changed by an earlier call to tzset(). */
+   if (!strncmp(pe-key, TZ, pe-key_len)) {
+   tzset();
+   }
+   
efree(pe-putenv_string);
efree(pe-key);
 }
@@ -1347,7 +1353,7 @@
if (putenv(pe.putenv_string) == 0) {/* success */
zend_hash_add(BG(putenv_ht), pe.key, pe.key_len+1, (void **) 
pe, sizeof(putenv_entry), NULL);
 #ifdef HAVE_TZSET
-   if (!strncmp(pe.key, TZ, 2)) {
+   if (!strncmp(pe.key, TZ, pe.key_len)) {
tzset();
}
 #endif

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



[PHP-CVS] cvs: php-src /ext/xmlrpc xmlrpc-epi-php.c

2003-10-14 Thread George Schlossnagle
gschlossnagle   Tue Oct 14 20:15:24 2003 EDT

  Modified files:  
/php-src/ext/xmlrpc xmlrpc-epi-php.c 
  Log:
  fix for dereferncing null pointer ([EMAIL PROTECTED])
  
  
  
Index: php-src/ext/xmlrpc/xmlrpc-epi-php.c
diff -u php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.35 
php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.36
--- php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.35Sun Aug 31 16:45:51 2003
+++ php-src/ext/xmlrpc/xmlrpc-epi-php.c Tue Oct 14 20:15:23 2003
@@ -51,7 +51,7 @@
+--+
  */
 
-/* $Id: xmlrpc-epi-php.c,v 1.35 2003/08/31 20:45:51 iliaa Exp $ */
+/* $Id: xmlrpc-epi-php.c,v 1.36 2003/10/15 00:15:23 gschlossnagle Exp $ */
 
 /**
 * BUGS:   *
@@ -1030,7 +1030,12 @@
WRONG_PARAM_COUNT;
}
/* user output options */
-   set_output_options(out, *output_opts);
+   if (argc == 3) {
+   set_output_options(out, NULL);
+   }
+   else {
+   set_output_options(out, *output_opts);
+   }
 
server = zend_list_find(Z_LVAL_PP(handle), type);
 

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



[PHP-CVS] cvs: php-src /ext/standard basic_functions.c

2003-10-14 Thread Wez Furlong
wez Tue Oct 14 20:18:54 2003 EDT

  Modified files:  
/php-src/ext/standard   basic_functions.c 
  Log:
  MFB Fix for #25825
  
  
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.631 
php-src/ext/standard/basic_functions.c:1.632
--- php-src/ext/standard/basic_functions.c:1.631Thu Oct  9 04:10:37 2003
+++ php-src/ext/standard/basic_functions.c  Tue Oct 14 20:18:53 2003
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.631 2003/10/09 08:10:37 andrey Exp $ */
+/* $Id: basic_functions.c,v 1.632 2003/10/15 00:18:53 wez Exp $ */
 
 #include php.h
 #include php_streams.h
@@ -1024,6 +1024,14 @@
}
 # endif
}
+#ifdef HAVE_TZSET
+   /* don't forget to reset the various libc globals that
+* we might have changed by an earlier call to tzset(). */
+   if (!strncmp(pe-key, TZ, pe-key_len)) {
+   tzset();
+   }
+#endif
+   
efree(pe-putenv_string);
efree(pe-key);
 }
@@ -1423,7 +1431,7 @@
if (putenv(pe.putenv_string) == 0) {/* success */
zend_hash_add(BG(putenv_ht), pe.key, pe.key_len+1, (void **) 
pe, sizeof(putenv_entry), NULL);
 #ifdef HAVE_TZSET
-   if (!strncmp(pe.key, TZ, 2)) {
+   if (!strncmp(pe.key, TZ, pe.key_len)) {
tzset();
}
 #endif

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



[PHP-CVS] cvs: php-src(PHP_4_3) /ext/standard basic_functions.c

2003-10-14 Thread Wez Furlong
wez Tue Oct 14 20:19:31 2003 EDT

  Modified files:  (Branch: PHP_4_3)
/php-src/ext/standard   basic_functions.c 
  Log:
  Don't forget to check for tzset...
  
  
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.543.2.23 
php-src/ext/standard/basic_functions.c:1.543.2.24
--- php-src/ext/standard/basic_functions.c:1.543.2.23   Tue Oct 14 20:14:37 2003
+++ php-src/ext/standard/basic_functions.c  Tue Oct 14 20:19:30 2003
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.543.2.23 2003/10/15 00:14:37 wez Exp $ */
+/* $Id: basic_functions.c,v 1.543.2.24 2003/10/15 00:19:30 wez Exp $ */
 
 #include php.h
 #include php_streams.h
@@ -950,11 +950,13 @@
}
 # endif
}
+#ifdef HAVE_TZSET
/* don't forget to reset the various libc globals that
 * we might have changed by an earlier call to tzset(). */
if (!strncmp(pe-key, TZ, pe-key_len)) {
tzset();
}
+#endif

efree(pe-putenv_string);
efree(pe-key);

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



Re: [PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/standard basic_functions.c

2003-10-14 Thread Jani Taskinen

Ah well, who would have TZ prefixed env vars anyway? :)
btw. you should put the #ifdef HAVE_TZSET around that addition
in php_putenv_destructor()..

--Jani


On Wed, 15 Oct 2003, Wez Furlong wrote:

wezTue Oct 14 20:14:38 2003 EDT

  Modified files:  (Branch: PHP_4_3)
/php-src   NEWS 
/php-src/ext/standard  basic_functions.c 
  Log:
  Fix bug #25825. tzset() was not called when resetting the TZ env var.
  In addition, fix a slight error (made by sniper!) which would trigger
  tzset() to be called for any env var beginning with TZ, and not just
  TZ itself.
  
  
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.436 php-src/NEWS:1.1247.2.437
--- php-src/NEWS:1.1247.2.436  Mon Oct 13 23:48:08 2003
+++ php-src/NEWS   Tue Oct 14 20:14:36 2003
@@ -1,6 +1,8 @@
 PHP 4  NEWS
 |||
 ?? Oct 2003, Version 4.3.4RC2
+- Fixed bug #25825 (tzset() was not called to reset libc environment
+  on request shutdown). (Wez)
 - Fixed multibyte regex engine to properly handle .* pattern under
   POSIX compatible mode. (K.Kosako kosako at sofnec.co.jp, Moriyoshi)
 - Fixed bug #25836 (last key of multi-dimensional array passed via GPC not
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.543.2.22 
php-src/ext/standard/basic_functions.c:1.543.2.23
--- php-src/ext/standard/basic_functions.c:1.543.2.22  Mon Sep 29 10:02:55 2003
+++ php-src/ext/standard/basic_functions.c Tue Oct 14 20:14:37 2003
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.543.2.22 2003/09/29 14:02:55 stas Exp $ */
+/* $Id: basic_functions.c,v 1.543.2.23 2003/10/15 00:14:37 wez Exp $ */
 
 #include php.h
 #include php_streams.h
@@ -950,6 +950,12 @@
   }
 # endif
   }
+  /* don't forget to reset the various libc globals that
+   * we might have changed by an earlier call to tzset(). */
+  if (!strncmp(pe-key, TZ, pe-key_len)) {
+  tzset();
+  }
+  
   efree(pe-putenv_string);
   efree(pe-key);
 }
@@ -1347,7 +1353,7 @@
   if (putenv(pe.putenv_string) == 0) {/* success */
   zend_hash_add(BG(putenv_ht), pe.key, pe.key_len+1, (void **) 
 pe, sizeof(putenv_entry), NULL);
 #ifdef HAVE_TZSET
-  if (!strncmp(pe.key, TZ, 2)) {
+  if (!strncmp(pe.key, TZ, pe.key_len)) {
   tzset();
   }
 #endif



-- 
https://www.paypal.com/xclick/[EMAIL PROTECTED]no_note=1tax=0currency_code=EUR
 

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



[PHP-CVS] cvs: CVSROOT / avail

2003-10-14 Thread Rasmus Lerdorf
rasmus  Tue Oct 14 20:46:06 2003 EDT

  Modified files:  
/CVSROOTavail 
  Log:
  doc karma for elf
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.760 CVSROOT/avail:1.761
--- CVSROOT/avail:1.760 Tue Oct 14 14:17:36 2003
+++ CVSROOT/avail   Tue Oct 14 20:46:05 2003
@@ -26,7 +26,7 @@
 # The PHP Documentation Group maintains the documentation and its
 # translations.
 
-avail|frogger,coldocean,alan_k,fleaslob,torben,lynch,kk,ted,paul,mbritton,coar,joey,bibi,mrobinso,perugini,tzwenny,hirokawa,drews,paulsen,hartmann,leon,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,goba,samesch,jon,soneca,ronabop,glace,latoserver,rafael,jan,jcmeloni,chrullrich,mk,sebastian,troels,mathieu,phaethon,mj,corean,pandach,cycle98,vizvil,regina,cynic,jpm,dams,karoora,pcraft,suvia,zak,zimt,jmoore,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,philip,alindeman,thyla,cucinato,zyprexia,tpug,mitja,conni,sts,georg,nmav,subbie,leszek,spheroid,slawek,alan_dangelo,ae,nohn,kaser01,visualmind,kurtz,luk,tronic,moh,bernd,yohgaki,fujimoto,gerzson,webler,spooky,cece,daniel,boo,nhoizey,joerg,imajes,hakan,chief977,shlomi,raful,yuval,tomer,barak,ido,mork,lior,gal,adiju,cr_depend,florian,kappu,muricaru,dt,critix,ck,costra,fancao0515,tibee,eriksson,wenz,bs,anderson,tal,sander,matroz,ave,adu,mmeier,wentzel,scaro,aspinei,lmaxcar,manuzhai,darvina,peter,maxim,romakhin,n0nick,attila,sagi,kai,microbrain,rhheo,shimi,k.schroeder,djworld,emil,lboshell,netholic,dmitry83,progcom,verdana,yincheng,surfmax,nicos,chregu,msopacua,bbd,cyril,gregory,hudzilla,klean,mignoni,wiesemann,xqi,mersal,zruya,sean,staybyte,aber_sabeel,alzahrani,thomaslio,sfox,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,tofanini,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,tony2001,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,ohill,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|phpdoc,ZendAPI,phpdoc-ar,phpdoc-cs,phpdoc-de,phpdoc-es,phpdoc-fi,phpdoc-fr,phpdoc-he,phpdoc-hk,phpdoc-hu,phpdoc-it,phpdoc-ja,phpdoc-kr,phpdoc-lt,phpdoc-nl,phpdoc-pl,phpdoc-pt_BR,phpdoc-ro,phpdoc-ru,phpdoc-sk,phpdoc-sl,phpdoc-sv,phpdoc-tr,phpdoc-tw,phpdoc-zh,phpdoc-el,phpdoc-id

[PHP-CVS] cvs: php-src /ext/mssql php_mssql.c

2003-10-14 Thread Ilia Alshanetsky
iliaa   Tue Oct 14 23:31:30 2003 EDT

  Modified files:  
/php-src/ext/mssql  php_mssql.c 
  Log:
  Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql)
  
  
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.123 php-src/ext/mssql/php_mssql.c:1.124
--- php-src/ext/mssql/php_mssql.c:1.123 Sun Aug 31 16:45:47 2003
+++ php-src/ext/mssql/php_mssql.c   Tue Oct 14 23:31:29 2003
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_mssql.c,v 1.123 2003/08/31 20:45:47 iliaa Exp $ */
+/* $Id: php_mssql.c,v 1.124 2003/10/15 03:31:29 iliaa Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -786,9 +786,11 @@
char *data = charcol(offset);
 
length=dbdatlen(mssql_ptr-link,offset);
+#if ilia_0
while (length0  data[length-1] == ' ') { /* nuke trailing 
whitespace */
length--;
}
+#endif
Z_STRVAL_P(result) = estrndup(data,length);
Z_STRLEN_P(result) = length;
Z_TYPE_P(result) = IS_STRING;

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



[PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/mssql php_mssql.c

2003-10-14 Thread Ilia Alshanetsky
iliaa   Tue Oct 14 23:32:18 2003 EDT

  Modified files:  (Branch: PHP_4_3)
/php-srcNEWS 
/php-src/ext/mssql  php_mssql.c 
  Log:
  MFH: Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql).
  
  
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.437 php-src/NEWS:1.1247.2.438
--- php-src/NEWS:1.1247.2.437   Tue Oct 14 20:14:36 2003
+++ php-src/NEWSTue Oct 14 23:32:16 2003
@@ -12,6 +12,7 @@
 - Fixed bug #25800 (parse_url() could not parse urls with empty port). (Ilia)
 - Fixed bug #25780 (ext/session: invalid session.cookie_lifetime makes 
   session_start() to crash in win32). (Jani)
+- Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql). (Ilia)
 - Fixed bug #25770 (Segfault with PHP and bison 1.875). ([EMAIL PROTECTED], Marcus)
 - Fixed bug #25764 (ldap_get_option() crashes with unbound ldap link). (Jani)
 - Fixed bug #25758 (var_export does not escape '  \ inside array keys). (Ilia)
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.86.2.24 php-src/ext/mssql/php_mssql.c:1.86.2.25
--- php-src/ext/mssql/php_mssql.c:1.86.2.24 Thu Aug 28 16:01:29 2003
+++ php-src/ext/mssql/php_mssql.c   Tue Oct 14 23:32:18 2003
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_mssql.c,v 1.86.2.24 2003/08/28 20:01:29 iliaa Exp $ */
+/* $Id: php_mssql.c,v 1.86.2.25 2003/10/15 03:32:18 iliaa Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -784,9 +784,11 @@
char *data = charcol(offset);
 
length=dbdatlen(mssql_ptr-link,offset);
+#if ilia_0
while (length0  data[length-1] == ' ') { /* nuke trailing 
whitespace */
length--;
}
+#endif
Z_STRVAL_P(result) = estrndup(data,length);
Z_STRLEN_P(result) = length;
Z_TYPE_P(result) = IS_STRING;

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