PHP architect

Category: Technical

Tag: Programming


<< Buy This Book on Amazon >>

231 views since 2008-12-05. Bookmark this: PHP architect

Description




Stuart Herbert, Sharon Levy, PHP architect
Marco Tabini | June 2008 | ISSN: 17097169 | PDF | 3.20 Mb | 60 pages

As you’re probably aware, Phar is now a core extension in PHP 5.3. This is great news for Greg Beaver, the project lead; he has worked incredibly hard to make the extension do all that could possibly be asked of it, and more. Marcus Borger and myself also work on the extension, but we’ve been left blinking at the speed of development more than once. At the time of writing, Greg had just added OpenSSL signing support to Phar, which means that the only thing left on the immediate TODO is performance optimization.
Oh, and forward compatibility.
Now optimization is definitely more Greg’s kind of thing than mine, and Marcus doesn’t have much spare time these days, so I took it on myself to focus on that other thing. I went to look at PHP 6.
The good news is that from now, all phars created using PHP 5.2.1 and up should run under PHP 6 and vice versa. The structure’s unchanged. Sing hallelujah.
The bad news is that a phar with a default stub won’t run under versions of PHP prior to PHP 5.2.1, whereas we had PHP 5.1 support this time last week. Blame: b and the binary cast. The default stub calls unpack(), you see, and PHP 6 needs to be told that the second argument to unpack() is a binary string and not a Unicode string. The only ways we have of telling PHP 6 this will throw a parse error in PHP 5.2.0 and under. There’s no way to have both backward compatibility and forward compatibility: we have to choose.
I approached Andrei Zmievski and asked why we couldn’t simply have a fallback implicit conversion from Unicode to binary where the context is known, i.e. in built-in PHP functions that require binary strings. He explained that there’s no way to be certain of the intended encoding. I argued. After all, the user has control over the encoding through various INI directives and/or through the actual encoding of the physical script; we just needed to know which of those values would be used for implicit conversion. Andrei reiterated that implicit conversion is generally a Bad Thing, due to the lack of certainty.
Muttering ’new INI directive’ under my breath, I’m still failing to see why an implicit conversion in that context couldn’t be allowed and accompanied by an E_STRICT or even an E_DEPRECATED advisory message, just to make BC more possible. We never expected to support PHP 4, and thankfully there aren’t many PHP 5.0 users out there, but PHP 5.1 is relatively popular and it’s pretty hard to swallow losing userland compatibility with it from PHP 5.2.1 up.
I’ll be interested to see what Stefan Priebsch has to say about forward compatibility
in his migration series, but unfortunately we all have to wait another month to read his take on that. It’s still interesting, from the perspective of PHP 5.3.0-dev, to see just how far we’ve come since PHP 4



Download this book from Usenet
DOWNLOAD Free register and download UseNet downloader, then you can free download from UseNet.

Free Download "PHP architect" from Usenet!

Buy this book from amazon


Disclaimer:
Contents of this page are indexed from the Internet. All actions are under your responsability. Email us to report illegal contents or external links and we'll remove them immediately.

Search More...

PHP architect

Search free ebooks in ebookee.com!


Links

Free Trade Magazine Subscriptions & Technical Document Downloads

Search and Buy
<< Search and Buy This Book on Amazon >>

Download this book from Usenet
DOWNLOAD How to download:
Free register to download UseNet downloader and install, then search book title and start downloading. You can DOWNLOAD 150GB for free! Register and Download NOW!

Free Download "PHP architect" from Usenet!

Download Link 2


No download links here
Please check the description for download links if any or do a search to find alternative books.

Can't Download?
Please search mirrors if you can't find download links for "PHP architect" in "Description" and someone else may update the links. Check the comments when back to find any updates.

Search Mirrors
Maybe some mirror pages will be helpful, search this book at top of this page or click here to find more info.


Related Books


Books related to "PHP architect":


Comments


No comments for "PHP architect".

Usenet Binaries anonym mit DSL Speed downloaden inkl. gratis Software

    Add Your Comments

    1. Download links and password may be in the description section, read description carefully!
    2. Do a search to find mirrors if no download links or dead links.

    required

    required, hidden

    need login

    required

    More Categories

    We Recommend

    Email Subscribe

    Enter your email address:

    Delivered by FeedBurner

    Feed & Bookmark

    • Add to Google Reader or Homepage

    Sponsored Links

    Back to Top