Lines Matching refs:user_stub
2567 * user_stub contains either a string, or a resource pointer, if len is a negative length.
2568 * user_stub and len should be both 0 if the default or existing stub should be used
2570 int phar_flush(phar_archive_data *phar, char *user_stub, long len, int convert, char **error TSRMLS_DC) /* {{{ */
2600 if (!zend_hash_num_elements(&phar->manifest) && !user_stub) {
2607 return phar_zip_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2611 return phar_tar_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2637 if (user_stub) {
2640 if (!(php_stream_from_zval_no_verify(stubfile, (zval **)user_stub))) {
2655 user_stub = 0;
2657 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) {
2671 tmp = estrndup(user_stub, len);
2682 efree(user_stub);
2686 pos = user_stub + (pos - tmp);
2688 len = pos - user_stub + 18;
2689 if ((size_t)len != php_stream_write(newfile, user_stub, len)
2699 efree(user_stub);
2705 efree(user_stub);
2710 if (!user_stub && phar->halt_offset && oldfile && !phar->is_brandnew) {