×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Static Analysis for PHP, from PHPDay Italy 2012

by Working at Etsy on May 19, 2012

  • 17,651 views

Techniques for static analysis of PHP, include using Facebooks HipHop for PHP (HpHp) and ClamAV. First presented at PHPDay 2012, Verona, Italy, May 19, 2012. Companion source code is available at ...

Techniques for static analysis of PHP, include using Facebooks HipHop for PHP (HpHp) and ClamAV. First presented at PHPDay 2012, Verona, Italy, May 19, 2012. Companion source code is available at https://github.com/client9/hphp-tools

Statistics

Views

Total Views
17,651
Views on SlideShare
8,748
Embed Views
8,903

Actions

Likes
21
Downloads
55
Comments
6

20 Embeds 8,903

http://corporate.tuenti.com 8589
http://juiceforu.wordpress.com 163
http://cyberintruder.wordpress.com 44
http://www.techgig.com 20
https://twitter.com 14
http://radityopw.posterous.com 12
http://46.137.179.7 11
http://translate.googleusercontent.com 11
http://feedwrangler.net 8
http://localhost 8
http://www.linkedin.com 5
https://si0.twimg.com 5
https://twimg0-a.akamaihd.net 4
http://twitter.com 2
http://new.fluidinfo.com 2
http://beta.fluidinfo.com 1
https://www.google.es 1
http://webcache.googleusercontent.com 1
http://leapf.org 1
https://www.google.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

16 of 6 previous next Post a comment

  • JayZeng Jay Zeng at Intelius interesting approach, thanks for sharing 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • nickgsuperstar Nick Galbreath at Etsy And another handy link for trying to build HpHp:
    http://php.webtutor.pl/en/2011/04/22/howto-install-hiphop-for-php-on-centos-5-x/
    1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • lukakladaric Luka Kladaric, Developer at deviantART.com @nickgsuperstar or enforce all .php files ending with '?>', with a single trailing \n allowed... it leads to a small amount of files ending with ?>, but at least it's very clear this was intentional



    also: great talk, thanks for all the useful info! :)
    1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • nickgsuperstar Nick Galbreath at Etsy Someone asked on how can you prevent 'ending ?>' in PHP source code. These can be a problem since after the last '?>' might have some trailing whitespace or junk after it which could cause problems if the file is included by another. To detect this, you'll have to use something like CodeSniffer or another tokenizer and see if anything comes after the last ?>. Regexp or grep might not work. 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • nickgsuperstar Nick Galbreath at Etsy Also https://github.com/client9/hphp-tools I just uploaded a sample stubs file https://github.com/client9/hphp-tools/blob/master/hphp_stubs.php.txt 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • nickgsuperstar Nick Galbreath at Etsy One comment from the presentation was that 'most of these checks are already done in some IDEs -- can we make batch mode to skip the complexity of HpHp?' I don't know and someone should investigate and comment back! 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Static Analysis for PHP, from PHPDay Italy 2012 Static Analysis for PHP, from PHPDay Italy 2012 Presentation Transcript