Diff for /embedaddon/php/ext/standard/iptc.c between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 23:48:02 version 1.1.1.2, 2012/05/29 12:34:43
Line 181  PHP_FUNCTION(iptcembed) Line 181  PHP_FUNCTION(iptcembed)
         int iptcdata_len, jpeg_file_len;          int iptcdata_len, jpeg_file_len;
         long spool = 0;          long spool = 0;
         FILE *fp;          FILE *fp;
        unsigned int marker, done = 0, inx;        unsigned int marker, done = 0;
         int inx;
         unsigned char *spoolbuf = NULL, *poi = NULL;          unsigned char *spoolbuf = NULL, *poi = NULL;
         struct stat sb;          struct stat sb;
         zend_bool written = 0;          zend_bool written = 0;
   
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &iptcdata, &iptcdata_len, &jpeg_file, &jpeg_file_len, &spool) != SUCCESS) {        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sp|l", &iptcdata, &iptcdata_len, &jpeg_file, &jpeg_file_len, &spool) != SUCCESS) {
                 return;                  return;
         }          }
   
         if (strlen(jpeg_file) != jpeg_file_len) {  
                 RETURN_FALSE;  
         }  
   
         if (PG(safe_mode) && (!php_checkuid(jpeg_file, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {  
                 RETURN_FALSE;  
         }  
   
         if (php_check_open_basedir(jpeg_file TSRMLS_CC)) {          if (php_check_open_basedir(jpeg_file TSRMLS_CC)) {
                 RETURN_FALSE;                  RETURN_FALSE;
         }          }
Line 303  PHP_FUNCTION(iptcembed) Line 296  PHP_FUNCTION(iptcembed)
    Parse binary IPTC-data into associative array */     Parse binary IPTC-data into associative array */
 PHP_FUNCTION(iptcparse)  PHP_FUNCTION(iptcparse)
 {  {
        unsigned int inx = 0, len, tagsfound = 0;        int inx = 0, len;
         unsigned int tagsfound = 0;
         unsigned char *buffer, recnum, dataset, key[ 16 ];          unsigned char *buffer, recnum, dataset, key[ 16 ];
         char *str;          char *str;
         int str_len;          int str_len;

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


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