Lines Matching refs:iptcdata_len
174 size_t iptcdata_len, jpeg_file_len; in PHP_FUNCTION() local
185 Z_PARAM_STRING(iptcdata, iptcdata_len) in PHP_FUNCTION()
195 if (iptcdata_len >= SIZE_MAX - sizeof(psheader) - 1025) { in PHP_FUNCTION()
210 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
212 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
260 if (iptcdata_len & 1) { in PHP_FUNCTION()
261 iptcdata_len++; /* make the length even */ in PHP_FUNCTION()
264 psheader[ 2 ] = (char) ((iptcdata_len+28)>>8); in PHP_FUNCTION()
265 psheader[ 3 ] = (iptcdata_len+28)&0xff; in PHP_FUNCTION()
271 php_iptc_put1(fp, spool, (unsigned char)(iptcdata_len>>8), poi?&poi:0); in PHP_FUNCTION()
272 php_iptc_put1(fp, spool, (unsigned char)(iptcdata_len&0xff), poi?&poi:0); in PHP_FUNCTION()
274 for (inx = 0; inx < iptcdata_len; inx++) { in PHP_FUNCTION()