|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
oliklee Smarty n00b
Joined: 24 Jan 2004 Posts: 1
|
Posted: Sat Jan 24, 2004 11:40 am Post subject: Warnings from PhpEclipse |
|
|
(Using Smarty 2.6.1)
PhpEclipse shows some warnings/errors when parsing the Smarty source. I don't know how many of these warnings are valid.
Smarty_Compiler.class.php
Line 1647: Error ) expected in postfix-expression.
if( /* prevent notice */ (isset($_math_vars[$_i]) && isset($_math_vars[$_i+1])) && ($_math_vars[$_i] === '-' && $_math_vars[$_i+1]{0} === '>')) {
Line 1862: Error ')' expected after 'if' condition.
if(isset($_modifier_args[0]) && $_modifier_args[0]{0} == '$') {
Line 2174: Error Too many closing '}'; end-of-file not reached.
}
(May be caused by PhpEclipse's PHP parser getting confused after the other two warnings.)
Smarty.class.php
Line 1977: Error ';' expected after 'continue', 'break' or 'return'.
return include_once($filename);
Line 1994: Error Too many closing '}'; end-of-file not reached.
}
(May be caused by PhpEclipse's PHP parser getting confused after the other warning.)
function.config_load.php
Line 93: Error ) expected after 'array('.
$_params = (array('compile_path' => $_compile_file, 'compiled_content' => $_output, 'resource_timestamp' => filemtime($_file_path)));
function.html_image.php
Line 100: Error ) expected in postfix-expression.
if ($smarty->security &&
($_params = array('resource_type' => 'file', 'resource_name' => $_image_path)) &&
(require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.is_secure.php')) &&
(!smarty_core_is_secure($_params, $smarty)) ) {
function.mailto.php
Line 84: Error ';' expected after expression (Found token: })
} |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Sat Jan 24, 2004 1:47 pm Post subject: Re: Warnings from PhpEclipse |
|
|
oliklee wrote: | (Using Smarty 2.6.1)
PhpEclipse shows some warnings/errors when parsing the Smarty source. I don't know how many of these warnings are valid. |
i think none. there is an authoritative syntax-check for php. use the php-cli or php-cgi version and run it with "php -l" (small ell). php checks the syntax of a file without running it.
(on my linux-machine with GNU fileutils):
Code: | find Smarty-2.6.1/libs -name '*.php' -print0 | sort -z | xargs -0 -n1 php -l |
i get (as i expected):
Code: | No syntax errors detected in Smarty-2.6.1/libs/Config_File.class.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.assemble_plugin_filepath.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.assign_smarty_interface.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.create_dir_structure.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.display_debug_console.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.get_include_path.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.get_microtime.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.get_php_resource.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.is_secure.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.is_trusted.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.load_plugins.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.load_resource_plugin.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.process_cached_inserts.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.process_compiled_include.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.read_cache_file.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.rm_auto.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.rmdir.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.run_insert_handler.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.smarty_include_php.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.write_cache_file.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.write_compiled_include.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.write_compiled_resource.php
No syntax errors detected in Smarty-2.6.1/libs/core/core.write_file.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/block.textformat.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/compiler.assign.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.assign_debug_info.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.config_load.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.counter.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.cycle.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.debug.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.eval.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.fetch.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_checkboxes.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_image.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_options.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_radios.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_select_date.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_select_time.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.html_table.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.mailto.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.math.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.popup_init.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/function.popup.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.capitalize.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.cat.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.count_characters.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.count_paragraphs.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.count_sentences.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.count_words.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.date_format.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.debug_print_var.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.default.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.escape.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.indent.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.lower.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.nl2br.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.regex_replace.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.replace.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.spacify.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.string_format.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.strip.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.strip_tags.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.truncate.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.upper.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/modifier.wordwrap.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/outputfilter.trimwhitespace.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/shared.escape_special_chars.php
No syntax errors detected in Smarty-2.6.1/libs/plugins/shared.make_timestamp.php
No syntax errors detected in Smarty-2.6.1/libs/Smarty.class.php
No syntax errors detected in Smarty-2.6.1/libs/Smarty_Compiler.class.php
|
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|