php 5.3 + windows

16
PHP 5.3 & Windows Scott MacVicar April 2009 Wednesday, 27 May 2009

Upload: scott-macvicar

Post on 13-May-2015

1.374 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: PHP 5.3 + Windows

PHP 5.3 & WindowsScott MacVicar

April 2009

Wednesday, 27 May 2009

Page 2: PHP 5.3 + Windows

Compared to 5.2

10 year old libraries

11 year old compiler

ISAPI crashes constantly

Wednesday, 27 May 2009

Page 3: PHP 5.3 + Windows

FastCGI

CGI involves executing a process for each request

FastCGI keeps a process running, like a mini server

Wednesday, 27 May 2009

Page 4: PHP 5.3 + Windows

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

Page 5: PHP 5.3 + Windows

How FastCGI Works

IIS PHPFastCGI

PHPProcess

PHPProcess

PHPProcess

PHPProcess

Wednesday, 27 May 2009

Page 6: PHP 5.3 + Windows

Per Directory Settings

Ability to change settings per directory

Ability to change settings per hostname

Similar to .htaccess

Wednesday, 27 May 2009

Page 8: PHP 5.3 + Windows

Network Functions

dns_check_record(), dns_get_mx(), checkdnsrr(), getmxrr()

inet_pton(), inet_ntop()

Wednesday, 27 May 2009

Page 9: PHP 5.3 + Windows

Disk FunctionsAddedfnmatch()

Addedsymlink(), readlink(), linkinfo(),link()

Updatedstat(),touch(), filemtime(), filesize()

Make rename() atomic

Wednesday, 27 May 2009

Page 10: PHP 5.3 + Windows

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

Page 11: PHP 5.3 + Windows

VC9 Libraries

Compiled against latest runtime

Faster and provides added functionality

VC6 builds still provided

Wednesday, 27 May 2009

Page 12: PHP 5.3 + Windows

64-bit builds

64-bit numbers

Maths operations faster

Can work with files > 4GB

XP isn’t supported

Wednesday, 27 May 2009

Page 13: PHP 5.3 + Windows

3rd Party Library Updates

tidy

ldap

cclient

ICU

cURL

Wednesday, 27 May 2009

Page 14: PHP 5.3 + Windows

Faster MySQL

mysqlnd enabled by default

removes external dependency

fixes horrible crash bugs

Wednesday, 27 May 2009

Page 15: PHP 5.3 + Windows

SQL Server 2005 Driver

Wraps around ODBC

Fixes streams with LOBs

Windows only :(

Better ODBC library would be nice

Wednesday, 27 May 2009

Page 16: PHP 5.3 + Windows

Useful URLs

http://php.iis.net/

http://windows.php.net/qa/

Wednesday, 27 May 2009