Title :
DRC: A detection tool for dangling references in PHP-based web applications
Author :
Hung Viet Nguyen ; Hoan Anh Nguyen ; Tung Thanh Nguyen ; Nguyen, Tuan N.
Author_Institution :
Electr. & Comput. Eng. Dept., Iowa State Univ., Ames, IA, USA
Abstract :
PHP is a server-side language that is widely used for creating dynamic Web applications. However, as a dynamic language, PHP may induce certain programming errors that reveal themselves only at run time. A common type of error is dangling references, which occur if the referred program entities have not been declared in the current program execution. To prevent the run-time errors caused by such dangling references, we introduce Dangling Reference Checker (DRC), a novel tool to statically detect those references in the source code of PHP-based Web applications. DRC first identifies the path constraints of the program executions in which a program entity appears and then matches the path constraints of the entity´s declarations and references to detect dangling ones. DRC is able to detect dangling reference errors in several real-world PHP systems with high accuracy. The video demonstration for DRC is available at http://www.youtube.com/watch?v=3Dy_AKZYhLlU4.
Keywords :
Internet; authoring languages; program verification; source coding; DRC; PHP-based Web applications; dangling reference checker; dangling reference detection tool; dangling reference error detection; dynamic Web applications; path constraints; program entity declarations; program entity references; program execution; programming errors; real-world PHP systems; run-time errors; server-side language; source code; video demonstration; Accuracy; Approximation methods; Databases; Dictionaries; HTML; Programming; Servers;
Conference_Titel :
Software Engineering (ICSE), 2013 35th International Conference on
Conference_Location :
San Francisco, CA
Print_ISBN :
978-1-4673-3073-2
DOI :
10.1109/ICSE.2013.6606702