php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
makestub.php File Reference

Go to the source code of this file.

Variables

 $s = str_replace("\r", '', file_get_contents(dirname(__FILE__) . '/shortarc.php'))
 
 $news = ''
 
 $slen = strlen($s) - strlen('index.php') - strlen("000")
 
 $webs = substr($s, 0, strpos($s, "000"))
 
 $s1 = substr($s, 0, strpos($s, 'index.php'))
 
 $s2 = substr($s, strlen($s1) + strlen('index.php'))
 
 $s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php'))
 
 $stub
 
 $s1split = str_split($s1, 2046)
 
 $s3split = str_split($s3, 2046)
 
 $took = false
 

Variable Documentation

◆ $news

$news = ''

Definition at line 5 of file makestub.php.

◆ $s

$s = str_replace("\r", '', file_get_contents(dirname(__FILE__) . '/shortarc.php'))

Definition at line 2 of file makestub.php.

◆ $s1

$s1 = substr($s, 0, strpos($s, 'index.php'))

Definition at line 28 of file makestub.php.

◆ $s1split

$s1split = str_split($s1, 2046)

Definition at line 54 of file makestub.php.

◆ $s2

$s2 = substr($s, strlen($s1) + strlen('index.php'))

Definition at line 29 of file makestub.php.

◆ $s3

$s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php'))

Definition at line 31 of file makestub.php.

◆ $s3split

$s3split = str_split($s3, 2046)

Definition at line 55 of file makestub.php.

◆ $slen

$slen = strlen($s) - strlen('index.php') - strlen("000")

Definition at line 21 of file makestub.php.

◆ $stub

foreach ( $s3split as $i=> $unused) $stub
Initial value:
= '/*
+----------------------------------------------------------------------+
| phar php single-file executable PHP extension generated stub |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Gregory Beaver <cellog@php.net> |
+----------------------------------------------------------------------+
*/
static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, const int name_len, const int web_len)
{
'

Definition at line 33 of file makestub.php.

◆ $took

$took = false

Definition at line 56 of file makestub.php.

◆ $webs

$webs = substr($s, 0, strpos($s, "000"))

Definition at line 26 of file makestub.php.