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

/PHP_TRUNK/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 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.c920 * Return a stub that can be used to run a phar-based archive without the phar extension
926 char *index = NULL, *webindex = NULL, *stub, *error; local
934 stub = phar_create_default_stub(index, webindex, &stub_len, &error TSRMLS_CC);
942 RETVAL_STRINGL(stub, stub_len);
943 efree(stub);
2815 /* {{{ proto bool Phar::setStub(string|stream stub [, int len])
2816 * Change the stub in a phar, phar.tar or phar.zip archive to something other
2817 * than the default. The stub *must* end with a call to __HALT_COMPILER().
2822 char *stub, *error; local
2830 "Cannot change stub, pha
2900 char *index = NULL, *webindex = NULL, *error = NULL, *stub = NULL; local
3842 phar_entry_info *stub; local
[all...]
H A Dphar.c553 phar_entry_info *stub; local
560 phar_entry_info *stub; local
569 /* prevent any ".phar" without a stub getting through */
571 if (PHAR_G(readonly) && NULL == (stub = zend_hash_str_find_ptr(&(phar->manifest), ".phar/stub.php", sizeof(".phar/stub.php")-1))) {
692 MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
699 MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
705 MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
1290 phar_entry_info *stub; local
2439 char *stub = NULL; local
[all...]
/PHP_TRUNK/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_TRUNK/scripts/dev/generate-phpt/
H A DgtPackage.php21 $stub = <<<ENDSTUB variable
28 $phar->setStub($stub);
/PHP_TRUNK/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));
/PHP_TRUNK/Zend/
H A Dzend_object_handlers.c418 zval stub, *guard; local
427 ZVAL_LONG(&stub, 0);
428 guard = zend_hash_add_new(zobj->guards, member, &stub);
/PHP_TRUNK/ext/standard/
H A Dfilters.c1203 char stub[128]; member in struct:_php_convert_filter
1552 pt = inst->stub;
1566 if (inst->stub_len >= sizeof(inst->stub)) {
1570 inst->stub[inst->stub_len++] = *(ps++);
1572 pt = inst->stub;
1629 memmove(inst->stub, pt, tcnt);
1643 if (icnt > sizeof(inst->stub)) {
1647 memcpy(inst->stub, ps, icnt);
/PHP_TRUNK/ext/iconv/
H A Diconv.c2523 char stub[128]; member in struct:_php_iconv_stream_filter
2599 pt = self->stub;
2613 if (self->stub_len >= sizeof(self->stub)) {
2617 self->stub[self->stub_len++] = *(ps++);
2619 pt = self->stub;
2676 memmove(self->stub, pt, tcnt);
2691 if (icnt > sizeof(self->stub)) {
2695 memcpy(self->stub, ps, icnt);

Completed in 31 milliseconds