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) /* {{{ */
2601 if (!zend_hash_num_elements(&phar->manifest) && !user_stub) {
2608 return phar_zip_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2612 return phar_tar_flush(phar, user_stub, len, convert, error TSRMLS_CC);
2638 if (user_stub) {
2641 if (!(php_stream_from_zval_no_verify(stubfile, (zval **)user_stub))) {
2656 user_stub = 0;
2658 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) {
2672 tmp = estrndup(user_stub, len);
2683 efree(user_stub);
2687 pos = user_stub + (pos - tmp);
2689 len = pos - user_stub + 18;
2690 if ((size_t)len != php_stream_write(newfile, user_stub, len)
2700 efree(user_stub);
2706 efree(user_stub);
2711 if (!user_stub && phar->halt_offset && oldfile && !phar->is_brandnew) {