Skip to search boxSkip to navigationSkip to main content

Static, lightweight includes resolution for PHP

  • M. Hills
    ,
  • P. Klint
    ,
  • J.J. Vinju
  • Centrum voor Wiskunde en Informatica
Output:
Chapter in Book/Report/Conference proceeding
Conference contribution
Academic
Peer-review

Information

Output type

Output:
Chapter in Book/Report/Conference proceeding
Conference contribution
Academic
Peer-review

Original language

English

Pages from-to (Number of pages)

Pages 503-514

Publication milestones

  • Published - 2014

Publication status

Published - 2014

Place of publication

New York

Publisher

Association for Computing Machinery, Inc., United States
978-1-4503-3013-8

Host publication title

Proceedings of the 29th IEEE/ACM International Conference on Automated Software Engineering (ASE 2014), September 15-19, 2014, Västeras, Sweden

Related Event

Title

29th IEEE/ACM International Conference on Automated Software Engineering (ASE 2014), September 15-19, 2014, Västerås, Sweden

Description

29th IEEE/ACM International Conference on Automated Software Engineering

Event type

Conference

Degree of recognition

International event

Date

15/09/2014 - 19/09/2014

Location

Aros Congress CenterVästeråsSweden

Abstract

Dynamic languages include a number of features that are challenging to model properly in static analysis tools. In PHP, one of these features is the include expression, where an arbitrary expression provides the path of the file to include at runtime. In this paper we present two complementary analyses for statically resolving PHP includes, one that works at the level of individual PHP files, and one targeting PHP programs possibly consisting of multiple scripts. To evaluate the effectiveness of these analyses we have applied the first to a corpus of 20 open-source systems, totaling more than 4.5 million lines of PHP, and the second to a number of programs from a subset of these systems. Our results show that, in many cases, includes can be resolved to a specific file or a small subset of possible files, enabling better IDE features and more advanced program analysis tools for PHP.

Metrics

Metrics

SciVal
FWCI
1.37
SciVal
Author count
3
SciVal
Paper percentile
79
SciVal
citations
10
Scopus
citations
10

PlumX, opens in new tab

Captures
33
Citation count
10