Home
last modified time | relevance | path

Searched refs:newstub (Results 1 – 6 of 6) sorted by relevance

/PHP-8.2/ext/phar/tests/tar/
H A Dphar_stub_error.phpt23 $newstub = '<?php echo "second stub\n"; _x_HALT_COMPILER(); ?>';
26 $phar->setStub($newstub);
/PHP-8.2/ext/phar/tests/zip/
H A Dphar_stub_error.phpt22 $newstub = '<?php echo "second stub\n"; _x_HALT_COMPILER(); ?>';
25 $phar->setStub($newstub);
/PHP-8.2/ext/phar/tests/
H A Dphar_stub_error.phpt25 $newstub = '<?php echo "second stub\n"; _x_HALT_COMPILER(); ?>';
28 $phar->setStub($newstub);
/PHP-8.2/ext/phar/
H A Dtar.c970 static const char newstub[] = "<?php // tar-based phar archive stub file\n__HALT_COMPILER();"; in phar_tar_flush() local
1115 if (sizeof(newstub)-1 != php_stream_write(entry.fp, newstub, sizeof(newstub)-1)) { in phar_tar_flush()
1123 entry.uncompressed_filesize = entry.compressed_filesize = sizeof(newstub) - 1; in phar_tar_flush()
H A Dphar.c2545 zend_string *newstub; in phar_flush() local
2686 newstub = NULL; in phar_flush()
2689 newstub = phar_create_default_stub(NULL, NULL, NULL); in phar_flush()
2690 phar->halt_offset = ZSTR_LEN(newstub); in phar_flush()
2691 written = php_stream_write(newfile, ZSTR_VAL(newstub), phar->halt_offset); in phar_flush()
2699 if (newstub) { in phar_flush()
2705 if (newstub) { in phar_flush()
2706 zend_string_free(newstub); in phar_flush()
2710 if (newstub) { in phar_flush()
2711 zend_string_free(newstub); in phar_flush()
H A Dzip.c1227 static const char newstub[] = "<?php // zip-based phar archive stub file\n__HALT_COMPILER();"; in phar_zip_flush() local
1376 if (sizeof(newstub)-1 != php_stream_write(entry.fp, newstub, sizeof(newstub)-1)) { in phar_zip_flush()
1384 entry.uncompressed_filesize = entry.compressed_filesize = sizeof(newstub) - 1; in phar_zip_flush()

Completed in 31 milliseconds