Closed jwhitcraft closed 11 years ago
Hey Jon,
I can update the travis config to test against PHP 5.3.26.
Unfortunately, I can not merge this pull request. Copying Crockford's latest changes to jsmin.c verbatim requires much more work. Check out your diff and you'll notice you have removed some code that is necessary to work with PHP's API. The changes are also reporting the build as a failure.
I can copy Crockford's changes over and rerun the tests.
@sqmk, thanks for looking into to it. Let me know if there is anything I can do to fix it. My C skills are a bit rusty but I'm willing to help.
No worries :-)
Say hello to Uriah and Majed for me (assuming you are still at Sugar)!
@sqmk, I got it updated with the latest JSMin. Let me know what you think.
Thanks @jwhitcraft, I'll check this out.
Looks like the current build minus your changes works on latest PHP 5.3 and PHP 5.4, so I'm a bit lost on where it fails compiling.
Your request look good with the exception of some indentation, but I am happy to pull it in and fix up the spacing issues. I'll spend some time in the morning and pop in your changes.
@sqmk,
Here is the error I'm getting when i compile your master repo
/Users/jwhitcraft/Projects/pecl-jsmin/jsmin.c:133:6: error: non-void function 'jsmin_next' should
return a value [-Wreturn-type]
return;
^
1 warning and 1 error generated.
make: *** [jsmin.lo] Error 1
This was not compiling with the php 5.3 and what not, I've just updated the jsmin.c from the main JSMin repo.