Lines Matching refs:options

69 	global $options;
83 printf('%sconfigure --enable-%s%s', $file_prefix, $options['ext'], PHP_EOL);
86 printf('%smake test TESTS=ext/%s/tests%3$s%3$s', $make_prefix, $options['ext'], PHP_EOL);
94 $options = [
120 $options['windows'] = false;
124 $options['unix'] = false;
128 $options['experimental'] = true;
132 $options['std'] = true;
144 … $options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]);
153 if (empty($options['ext'])) {
155 } else if (!$options['unix'] && !$options['windows']) {
157 } else if (!is_dir($options['skel'])) {
161 $options['ext'] = str_replace(['\\', '/'], '', strtolower($options['ext']));
163 return $options;
170 global $options;
178 $source = str_replace('%EXTNAME%', $options['ext'], $source);
179 $source = str_replace('%EXTNAMECAPS%', strtoupper($options['ext']), $source);
185 if ($options['std']) {
187 $author_len = strlen($options['author']);
188 …$credits = $options['author'] . ($author_len && $author_len <= 60 ? str_repeat(' ', 60 - $author_l…
219 if ($options['author']) {
220 …$header = sprintf('/* %s extension for PHP (c) %d %s */', $options['ext'], date('Y'), $options['au…
222 $header = sprintf('/* %s extension for PHP */', $options['ext']);
241 global $options;
245 if ($options['unix']) {
249 if ($options['windows']) {
256 $new_config_script = $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $config_script;
258 if (!copy($options['skel'] . $config_script . '.in', $new_config_script)) {
270 global $options;
273 'skeleton.c' => $options['ext'] . '.c',
274 'php_skeleton.h' => 'php_' . $options['ext'] . '.h'
278 …if (!copy($options['skel'] . $src_file, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . …
282 …process_source_tags($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $dst_file, $dst_file…
290 global $options;
292 $test_files = glob($options['skel'] . 'tests/*', GLOB_MARK);
303 $new_test = str_replace([$options['skel'], '/'], ['', DIRECTORY_SEPARATOR], $test);
305 if (!copy($test, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $new_test)) {
309 …process_source_tags($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $new_test, $new_test…
324 $options = process_args($argv, $argc); variable
326 if (!$options['dir'] || !is_dir($options['dir'])) {
328 } else if (is_dir($options['dir'] . $options['ext'])) {
329 error('There is already a folder named "' . $options['ext'] . '" in the output directory');
330 } else if (!mkdir($options['dir'] . $options['ext'])) {
332 } else if (!mkdir($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'tests')) {
336 if ($options['experimental']) {
339 …if (file_put_contents($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'EXPERIMENTAL', ''…
346 if (!empty($options['author'])) {
349 …if (!file_put_contents($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'CREDITS', $optio…