Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Php On Windows Internals

2,292 views

Published on

Intro to develop PHP and PHP extensions on Windows. Basic steps to setup a development environment or to hunt down bugs,

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Php On Windows Internals

  1. 1. PHP internals on Windows<br />easier than ever<br />Pierre Joye<br />vortrag@mayflower<br />2009/10/22<br />
  2. 2. Get in touch<br />pierre@php.net<br />http://twitter.com/pierrejoye<br />http://www.facebook.com/pierre.joye<br />http://www.linkedin.com/in/pierrejoye<br />http://www.xing.com/profile/Pierre_Joye<br />
  3. 3. Why Windows?<br />
  4. 4. Introduction<br />How did we get here?<br />
  5. 5. Motivations<br />Why it is worth doing <br />
  6. 6. Support<br />Windows Internals list<br />http://www.php.net/mailing-lists.php<br />IRC Freenode<br />#php-dev-win<br />http://wiki.php.net/internals/windows<br />
  7. 7. Starting Out<br />What do you need to get started<br />
  8. 8. Prerequisites<br />
  9. 9. Supported Platforms<br />
  10. 10. Compilers<br />
  11. 11. Platform SDK<br />
  12. 12. Versions used by php.net<br />Works but not used in php.net releases<br />Works and used in php.net releases<br />No support<br />
  13. 13. All youneedis a console<br />Setup a default debugging environment for 32bit<br />setenv /x86 /xp /debug (yellow)<br />setenv /x86 /xp /release (green)<br />
  14. 14. Building PHP<br />A custom build in 10 minutes<br />
  15. 15. Setup your tree<br />
  16. 16. Common tree contents<br />
  17. 17. Get the sources<br />SVNhttp://www.php.net/svn.php<br />Snapshotshttp://windows.php.net/snapshots/<br />Releaseshttp://windows.php.net/releases/<br />
  18. 18. Generate the configuration scripts<br />Add a custom extension directory (pecl, your own extensions, etc.)<br />Buildconf --add-modules-dir=c:path opecl<br />
  19. 19. Configure your build<br />
  20. 20. Compiling<br />
  21. 21. Audience Participation<br />Can you build it?<br />
  22. 22. Typical Structure of a development package<br />
  23. 23. Test FCGI in the console<br />set REDIRECT_STATUS=1<br />set QUERY_STRING=<br />set PATH_TRANSLATED=C:Inetpubwwwrootinf.php<br />set SCRIPT_FILENAME=C:Inetpubwwwrootinf.php<br />set REQUEST_METHOD=GET<br />set CONTENT_TYPE=<br />set CONTENT_LENGTH=<br />
  24. 24. Want to add a feature?<br />
  25. 25. My code has no bug<br />
  26. 26. Breakpoints, the easy way<br />
  27. 27. The future<br />What‘s next?<br />
  28. 28. Questions?<br />Answers.<br />
  29. 29. Resources<br />

×