Update utf8_encode.js
Fix bug in tokenizer where buffer fails to find limit.
Update sha1.js

utf8_encode function not exists by default.
Metaphone should remove duplicate 'g'

Current PHP source code for metaphone removed duplicated 'g' characters. Don't know when it changed, but seems to be long ago.
Replaced removeDuplicates with simple IF statement
Metaphone bugfixes

Fixed handling of 'C', 'Y' and improved isVowel to return false on empty string.
Oops. Fixed syntax in test
Metaphone: simpler 'P' handling
Metaphone: fixed handling of 'T' chars

In PHP 5.3 the handling of 'T' changed to not include it in result when followed by 'CH'.
Metaphone: Added test for changed 'T' handling
Re-implemented metaphone using PHP 5.5.8 sources

The metaphone implementation changed with some PHP version. Some small behavioral changes. This port also handles passing NaN and Infinity. `metaphone(new String('example'))` is handled like an ordinary object, thus returning null.
Metaphone: added example tests

The current metaphone implementation passes all tests added to the bottom of the function. If anyone finds a better place for such things (didn't want to add such a huge comment to top of the file), feel free to move them.
addressed https://github.com/kvz/phpjs/issues/138 and did some cleanup
Merge pull request #139 from codemasher/master

Fixed #138 and did some cleanup
added .idea for PhpStorm
same as https://github.com/kvz/phpjs/issues/138 for var _pad
Merge pull request #140 from codemasher/master

Fixed implicit declaration of var _pad in function date()
Array constructor called without "new"
Merge pull request #141 from codemasher/master

Array constructor called without "new"
+example for str_getcsv