Diff for /embedaddon/php/ext/standard/string.c between versions 1.1.1.3 and 1.1.1.5

version 1.1.1.3, 2013/07/22 01:32:05 version 1.1.1.5, 2014/06/15 20:03:57
Line 2 Line 2
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | PHP Version 5                                                        |     | PHP Version 5                                                        |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
   | Copyright (c) 1997-2013 The PHP Group                                |   | Copyright (c) 1997-2014 The PHP Group                                |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | This source file is subject to version 3.01 of the PHP license,      |     | This source file is subject to version 3.01 of the PHP license,      |
    | that is bundled with this package in the file LICENSE, and is        |     | that is bundled with this package in the file LICENSE, and is        |
Line 1441  PHPAPI void php_basename(const char *s, size_t len, ch Line 1441  PHPAPI void php_basename(const char *s, size_t len, ch
                                                 state = 0;                                                  state = 0;
                                                 cend = c;                                                  cend = c;
                                         }                                          }
   #if defined(PHP_WIN32) || defined(NETWARE)
                                   /* Catch relative paths in c:file.txt style. They're not to confuse
                                      with the NTFS streams. This part ensures also, that no drive 
                                      letter traversing happens. */
                                   } else if ((*c == ':' && (c - comp == 1))) {
                                           if (state == 0) {
                                                   comp = c;
                                                   state = 1;
                                           } else {
                                                   cend = c;
                                                   state = 0;
                                           }
   #endif
                                 } else {                                  } else {
                                         if (state == 0) {                                          if (state == 0) {
                                                 comp = c;                                                  comp = c;
Line 1581  PHP_FUNCTION(pathinfo) Line 1594  PHP_FUNCTION(pathinfo)
                 const char *p;                  const char *p;
                 int idx;                  int idx;
   
                /* Have we alrady looked up the basename? */                /* Have we already looked up the basename? */
                 if (!have_basename && !ret) {                  if (!have_basename && !ret) {
                         php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);                          php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
                 }                  }
Line 3253  static void php_similar_str(const char *txt1, int len1 Line 3266  static void php_similar_str(const char *txt1, int len1
 static int php_similar_char(const char *txt1, int len1, const char *txt2, int len2)  static int php_similar_char(const char *txt1, int len1, const char *txt2, int len2)
 {  {
         int sum;          int sum;
        int pos1, pos2, max;        int pos1 = 0, pos2 = 0, max;
   
         php_similar_str(txt1, len1, txt2, len2, &pos1, &pos2, &max);          php_similar_str(txt1, len1, txt2, len2, &pos1, &pos2, &max);
         if ((sum = max)) {          if ((sum = max)) {
Line 4613  PHPAPI size_t php_strip_tags_ex(char *rbuf, int len, i Line 4626  PHPAPI size_t php_strip_tags_ex(char *rbuf, int len, i
         char *tbuf, *buf, *p, *tp, *rp, c, lc;          char *tbuf, *buf, *p, *tp, *rp, c, lc;
         int br, i=0, depth=0, in_q = 0;          int br, i=0, depth=0, in_q = 0;
         int state = 0, pos;          int state = 0, pos;
        char *allow_free;        char *allow_free = NULL;
   
         if (stateptr)          if (stateptr)
                 state = *stateptr;                  state = *stateptr;

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>