Variable Feature Usage Patterns in PHP
نویسنده
چکیده
PHP allows the names of variables, classes, functions, methods, and properties to be given dynamically, as expressions that, when evaluated, return an identifier as a string. While this provides greater flexibility for programmers, it also makes PHP programs harder to precisely analyze and understand. In this paper we present a number of patterns designed to recognize idiomatic uses of these features that can be statically resolved to a precise set of possible names. We then evaluate these patterns across a corpus of 20 open-source systems totaling more than 3.7 million lines of PHP, showing how often these patterns occur in actual PHP code, demonstrating their effectiveness at statically determining the names that can be used at runtime, and exploring anti-patterns that indicate when the identifier computation is truly dynamic.
منابع مشابه
The design patterns in PHP language for the web documents aggregation model
This paper considers the usage of design patterns in PHP language for the documents set model. The author discusses briefly to design patterns and one of the open web documents aggregation model. Some of new features on PHP and its consequences are also presented. The author states that usage of free, powerful development tools and standard problem solving in a new context gives the flexible an...
متن کاملReducing Dynamic Feature Usage in PHP Code
Faculteit der Natuurwetenschappen, Wiskunde en Informatica Centrum voor Wiskunde en Informatica
متن کاملEnabling PHP software engineering research in Rascal
Today, PHP is one of the most popular programming languages and is commonly used in the open source community and in industry to build large application frameworks and web applications. In this paper, we discuss our ongoing work on PHP AiR, a framework for PHP Analysis in Rascal. PHP AiR is focused especially on program analysis and empirical software engineering, and is being used actively and...
متن کاملCommon Spatial Patterns Feature Extraction and Support Vector Machine Classification for Motor Imagery with the SecondBrain
Recently, a large set of electroencephalography (EEG) data is being generated by several high-quality labs worldwide and is free to be used by all researchers in the world. On the other hand, many neuroscience researchers need these data to study different neural disorders for better diagnosis and evaluating the treatment. However, some format adaptation and pre-processing are necessary before ...
متن کاملبررسی 10 ساله موارد پسودوهیپوپاراتیروئیدیسم در مرکز تحقیقات غدد و متابولیسم
Pseudohypoparathyroidism (PHP) refers to a spectrum of disorders which is characterized by resistance of target organ to parathyroid hormone(PTH) followed by hypocalcemia, hyperphosphatemia and hypersecretion of PTH. Nowadays different types of PHP (1A, 1B, 1C, 2) can be distinguished the most common type among them is type 1A accompanied by Albright’s phenotype (round faces, shortening o...
متن کامل