Lines Matching refs:options

137     global $options;
149 printf('cd /path/to/php-src/%s%s', $options['ext'], PHP_EOL);
162 $options = [
188 $options['windows'] = false;
192 $options['unix'] = false;
196 $options['experimental'] = true;
200 $options['std'] = true;
212 … $options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]);
221 if (empty($options['ext'])) {
223 } else if (!$options['unix'] && !$options['windows']) {
225 } else if (!is_dir($options['skel'])) {
230 if (!preg_match('/^[a-z][a-z0-9_]+$/i', $options['ext'])) {
236 $options['ext'] = str_replace(['\\', '/'], '', strtolower($options['ext']));
238 return $options;
245 global $options;
253 $source = str_replace('%EXTNAME%', $options['ext'], $source);
254 $source = str_replace('%EXTNAMECAPS%', strtoupper($options['ext']), $source);
260 if ($options['std']) {
261 $author_len = strlen($options['author']);
262 …$credits = $options['author'] . ($author_len && $author_len <= 60 ? str_repeat(' ', 60 - $author_l…
284 if ($options['author']) {
285 …$header = sprintf('/* %s extension for PHP (c) %d %s */', $options['ext'], date('Y'), $options['au…
287 $header = sprintf('/* %s extension for PHP */', $options['ext']);
304 global $options;
308 if ($options['unix']) {
312 if ($options['windows']) {
319 … $new_config_script = $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $config_script;
321 if (!copy($options['skel'] . $config_script . '.in', $new_config_script)) {
333 global $options;
336 'skeleton.c' => $options['ext'] . '.c',
337 'php_skeleton.h' => 'php_' . $options['ext'] . '.h'
341 …if (!copy($options['skel'] . $src_file, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . …
345 …process_source_tags($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $dst_file, $dst_file…
353 global $options;
355 $test_files = glob($options['skel'] . 'tests/*', GLOB_MARK);
366 $new_test = str_replace([$options['skel'], '/'], ['', DIRECTORY_SEPARATOR], $test);
368 if (!copy($test, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $new_test)) {
372 …process_source_tags($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $new_test, $new_test…
387 $options = process_args($argv, $argc); variable
389 if (!$options['dir'] || !is_dir($options['dir'])) {
391 } else if (is_dir($options['dir'] . $options['ext'])) {
392 error('There is already a folder named "' . $options['ext'] . '" in the output directory');
393 } else if (!mkdir($options['dir'] . $options['ext'])) {
395 } else if (!mkdir($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'tests')) {
399 if ($options['experimental']) {
402 …if (file_put_contents($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'EXPERIMENTAL', ''…
409 if (!empty($options['author'])) {
412 …if (!file_put_contents($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'CREDITS', $optio…