Searched refs:stub (Results 1 - 10 of 10) sorted by relevance

/PHP_5_5/ext/phar/
H A Dmakestub.php33 $stub = '/* variable
35 | phar php single-file executable PHP extension generated stub |
53 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 TSRMLS_DC)
79 $stub .= "\tstatic const char newstub0[] = \"" . $webs . '";
83 $stub .= "\tstatic const char newstub1_" . $i . '[] = "' . $chunk . '";
86 $stub .= "\tstatic const char newstub2[] = \"" . $s2 . "\";
90 $stub .= "\tstatic const char newstub3_" . $i . '[] = "' . $chunk . '";
93 $stub .= "\n\tstatic const int newstub_len = " . $slen . ";
95 \t*len = spprintf(stub, name_len + web_len + newstub_len, \"%s%s" . str_repeat('%s', $s1count) . '%s%s%d'
98 $stub
[all...]
H A Dphar.c547 phar_entry_info *stub; local
554 phar_entry_info *stub; local
563 /* prevent any ".phar" without a stub getting through */
565 if (PHAR_G(readonly) && FAILURE == zend_hash_find(&(phar->manifest), ".phar/stub.php", sizeof(".phar/stub.php")-1, (void **)&stub)) {
687 MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
694 MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
700 MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
1285 phar_entry_info *stub; local
2512 char *stub = NULL; local
[all...]
H A Dstub.h3 | phar php single-file executable PHP extension generated stub |
21 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 TSRMLS_DC) argument
33 *len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, newstub1_0, newstub1_1, index_php, newstub2, name_len + web_len + newstub_len, newstub3_0, newstub3_1, newstub3_2);
H A Dphar_object.c953 * Return a stub that can be used to run a phar-based archive without the phar extension
959 char *index = NULL, *webindex = NULL, *stub, *error; local
967 stub = phar_create_default_stub(index, webindex, &stub_len, &error TSRMLS_CC);
974 RETURN_STRINGL(stub, stub_len, 0);
2865 /* {{{ proto bool Phar::setStub(string|stream stub [, int len])
2866 * Change the stub in a phar, phar.tar or phar.zip archive to something other
2867 * than the default. The stub *must* end with a call to __HALT_COMPILER().
2872 char *stub, *error; local
2880 "Cannot change stub, phar is read-only");
2887 "A Phar stub canno
2950 char *index = NULL, *webindex = NULL, *error = NULL, *stub = NULL; local
3899 phar_entry_info *stub; local
[all...]
/PHP_5_5/ext/phar/phar/
H A Dpharcommand.inc124 .'stub so that class PHP_Archive gets registered as phar:// stream wrapper '
132 'inf' => '<stub> Select the stub file.'
444 "When using -s <stub>, then the stub file is being " .
472 * Set the stub
474 public function phar_set_stub_begin(Phar $phar, $stub, $loader = NULL, $hashbang = NULL)
476 if (isset($stub)) {
477 $c = file_get_contents($stub);
524 return new SplFileInfo($stub);
[all...]
/PHP_5_5/scripts/dev/generate-phpt/
H A DgtPackage.php21 $stub = <<<ENDSTUB variable
28 $phar->setStub($stub);
/PHP_5_5/ext/standard/
H A Dfilters.c1212 char stub[128]; member in struct:_php_convert_filter
1571 pt = inst->stub;
1585 if (inst->stub_len >= sizeof(inst->stub)) {
1589 inst->stub[inst->stub_len++] = *(ps++);
1591 pt = inst->stub;
1648 memmove(inst->stub, pt, tcnt);
1662 if (icnt > sizeof(inst->stub)) {
1666 memcpy(inst->stub, ps, icnt);
/PHP_5_5/ext/iconv/
H A Diconv.c2478 char stub[128]; member in struct:_php_iconv_stream_filter
2554 pt = self->stub;
2568 if (self->stub_len >= sizeof(self->stub)) {
2572 self->stub[self->stub_len++] = *(ps++);
2574 pt = self->stub;
2631 memmove(self->stub, pt, tcnt);
2646 if (icnt > sizeof(self->stub)) {
2650 memcpy(self->stub, ps, icnt);
/PHP_5_5/Zend/
H A Dzend_object_handlers.c390 zend_guard stub; local
414 stub.in_get = 0;
415 stub.in_set = 0;
416 stub.in_unset = 0;
417 stub.in_isset = 0;
418 return zend_hash_quick_add(zobj->guards, property_info->name, property_info->name_length+1, property_info->h, (void**)&stub, sizeof(stub), (void**) pguard);
/PHP_5_5/win32/build/
H A Dmkdist.php439 $stub = file($path_to_phar . '/phar/phar.php'); variable
441 unset($stub[0]); // remove hashbang
442 $phar->setStub(implode('', $stub));

Completed in 66 milliseconds