PHP 5.3 + Windows
-
Upload
scott-macvicar -
Category
Technology
-
view
1.370 -
download
0
Transcript of PHP 5.3 + Windows
PHP 5.3 & WindowsScott MacVicar
April 2009
Wednesday, 27 May 2009
Compared to 5.2
10 year old libraries
11 year old compiler
ISAPI crashes constantly
Wednesday, 27 May 2009
FastCGI
CGI involves executing a process for each request
FastCGI keeps a process running, like a mini server
Wednesday, 27 May 2009
FastCGI + IIS
IIS 6 and 7 support FastCGI
Replaces ISAPI filter with PHP
Resolves memory leaks / thread safety issues
Ships with Server 2008
Wednesday, 27 May 2009
How FastCGI Works
IIS PHPFastCGI
PHPProcess
PHPProcess
PHPProcess
PHPProcess
Wednesday, 27 May 2009
Per Directory Settings
Ability to change settings per directory
Ability to change settings per hostname
Similar to .htaccess
Wednesday, 27 May 2009
INI File example
Wednesday, 27 May 2009
Network Functions
dns_check_record(), dns_get_mx(), checkdnsrr(), getmxrr()
inet_pton(), inet_ntop()
Wednesday, 27 May 2009
Disk FunctionsAddedfnmatch()
Addedsymlink(), readlink(), linkinfo(),link()
Updatedstat(),touch(), filemtime(), filesize()
Make rename() atomic
Wednesday, 27 May 2009
Miscellaneoustime_nanosleep()
time_sleep_until()
getopt()
exec() doesn’t deal with spaces properly.
escapeshellcmd() eats certain characters
crypt() not thread safe
Wednesday, 27 May 2009
VC9 Libraries
Compiled against latest runtime
Faster and provides added functionality
VC6 builds still provided
Wednesday, 27 May 2009
64-bit builds
64-bit numbers
Maths operations faster
Can work with files > 4GB
XP isn’t supported
Wednesday, 27 May 2009
3rd Party Library Updates
tidy
ldap
cclient
ICU
cURL
Wednesday, 27 May 2009
Faster MySQL
mysqlnd enabled by default
removes external dependency
fixes horrible crash bugs
Wednesday, 27 May 2009
SQL Server 2005 Driver
Wraps around ODBC
Fixes streams with LOBs
Windows only :(
Better ODBC library would be nice
Wednesday, 27 May 2009
Useful URLs
http://php.iis.net/
http://windows.php.net/qa/
Wednesday, 27 May 2009