<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jsmin as a PHP extension &#8211; JavaScript Minify the Fast Way</title>
	<atom:link href="http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/</link>
	<description>Solaris, PHP, and Random Things</description>
	<lastBuildDate>Tue, 17 Jan 2012 00:24:06 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ebrahim Imami</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1669</link>
		<dc:creator>Ebrahim Imami</dc:creator>
		<pubDate>Sat, 23 Jul 2011 04:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1669</guid>
		<description>jsmin extension removes non-english characters that exists inside .js file

in my case , jsmin removes persian characters !
What is the reason !?</description>
		<content:encoded><![CDATA[<p>jsmin extension removes non-english characters that exists inside .js file</p>
<p>in my case , jsmin removes persian characters !<br />
What is the reason !?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Attila</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1662</link>
		<dc:creator>Attila</dc:creator>
		<pubDate>Tue, 05 Jul 2011 22:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1662</guid>
		<description>Thank you for this extension. I am using this for three months now and with pleasure :)

Diego, thanks for the quick fix, it works for me as well.</description>
		<content:encoded><![CDATA[<p>Thank you for this extension. I am using this for three months now and with pleasure <img src='http://www.ypass.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Diego, thanks for the quick fix, it works for me as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1592</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Fri, 15 Apr 2011 23:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1592</guid>
		<description>I don&#039;t know anything about MAMP or Macs... but searching for that error shows that it&#039;s a fairly common error on OSX with PHP.  According to one person, it&#039;s possible it didn&#039;t compile properly, but I can&#039;t make any guesses one way or the other.  You may want to look for some help with compiling extensions on some Mac forums.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know anything about MAMP or Macs&#8230; but searching for that error shows that it&#8217;s a fairly common error on OSX with PHP.  According to one person, it&#8217;s possible it didn&#8217;t compile properly, but I can&#8217;t make any guesses one way or the other.  You may want to look for some help with compiling extensions on some Mac forums.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1591</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 15 Apr 2011 16:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1591</guid>
		<description>I was excited to try this out. However, after installing it correctly on my Mac and making the necessary change to my php.ini in MAMP, I get the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library &#039;/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/jsmin.so&#039; - (null) in Unknown on line 0

Any idea how to get around this?</description>
		<content:encoded><![CDATA[<p>I was excited to try this out. However, after installing it correctly on my Mac and making the necessary change to my php.ini in MAMP, I get the following error:</p>
<p>PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/jsmin.so&#8217; &#8211; (null) in Unknown on line 0</p>
<p>Any idea how to get around this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1582</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Wed, 16 Feb 2011 09:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1582</guid>
		<description>works great, many many thanks!</description>
		<content:encoded><![CDATA[<p>works great, many many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1560</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Thu, 21 Oct 2010 20:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1560</guid>
		<description>I&#039;ve installed jsmin.c and it&#039;s a 1600x speedup (Yes, one six zero zero) over jsmin.php.

jsmin.php 25 secs to minify
jsmin.c 0.016 secs to minify

LIGHTNING, BABY BOY!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve installed jsmin.c and it&#8217;s a 1600x speedup (Yes, one six zero zero) over jsmin.php.</p>
<p>jsmin.php 25 secs to minify<br />
jsmin.c 0.016 secs to minify</p>
<p>LIGHTNING, BABY BOY!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1554</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 13 Oct 2010 11:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1554</guid>
		<description>&lt;a href=&quot;#comment-1545&quot; rel=&quot;nofollow&quot;&gt;@Igor&lt;/a&gt; 
I&#039;m not sure that&#039;s a problem with my php build, because the Gentoo Linux isn&#039;t so new and unstable, and it&#039;s used by a large linux comunity !
But to show you guys that I found a temporary solution for php-jsmin-1.0, that you can implement later in your configure/Makefile:

source=`dirname $0`

cc -I. -I$source -DPHP_ATOM_INC \
 -I$source/include -I$source/main \
 -I$source -I/usr/lib64/php5/include/php \
 -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM \
 -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext \
 -I/usr/lib64/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 \
 -c $source/jsmin.c -o jsmin.o -fPIC -DPIC

cc -shared jsmin.o -Wl,-soname -Wl,jsmin.so -o jsmin.so

This worked very fine for me, compiled me the jsmin.so with no errors, and now I use it on 4 web servers that are in production !
Thanks for no help :)</description>
		<content:encoded><![CDATA[<p><a href="#comment-1545" rel="nofollow">@Igor</a><br />
I&#8217;m not sure that&#8217;s a problem with my php build, because the Gentoo Linux isn&#8217;t so new and unstable, and it&#8217;s used by a large linux comunity !<br />
But to show you guys that I found a temporary solution for php-jsmin-1.0, that you can implement later in your configure/Makefile:</p>
<p>source=`dirname $0`</p>
<p>cc -I. -I$source -DPHP_ATOM_INC \<br />
 -I$source/include -I$source/main \<br />
 -I$source -I/usr/lib64/php5/include/php \<br />
 -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM \<br />
 -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext \<br />
 -I/usr/lib64/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 \<br />
 -c $source/jsmin.c -o jsmin.o -fPIC -DPIC</p>
<p>cc -shared jsmin.o -Wl,-soname -Wl,jsmin.so -o jsmin.so</p>
<p>This worked very fine for me, compiled me the jsmin.so with no errors, and now I use it on 4 web servers that are in production !<br />
Thanks for no help <img src='http://www.ypass.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1545</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Sun, 12 Sep 2010 01:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1545</guid>
		<description>@Phil, this is an issue with your php build.

@dale, I am not sure I follow.  There is nothing in the package that forces the 64-bit build.</description>
		<content:encoded><![CDATA[<p>@Phil, this is an issue with your php build.</p>
<p>@dale, I am not sure I follow.  There is nothing in the package that forces the 64-bit build.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Campoy</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1541</link>
		<dc:creator>Diego Campoy</dc:creator>
		<pubDate>Thu, 02 Sep 2010 07:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1541</guid>
		<description>&lt;a href=&quot;#comment-1540&quot; rel=&quot;nofollow&quot;&gt;@Diego Campoy&lt;/a&gt; 

-------- PHP Test -----------------------------------
$utf8 = &quot;résumé&quot;;
echo ($utf8==jsmin($utf8))?&quot;ok&quot;:&quot;fail&quot;;

-------- End of file -----------------------------------</description>
		<content:encoded><![CDATA[<p><a href="#comment-1540" rel="nofollow">@Diego Campoy</a> </p>
<p>&#8212;&#8212;&#8211; PHP Test &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
$utf8 = &#8220;résumé&#8221;;<br />
echo ($utf8==jsmin($utf8))?&#8221;ok&#8221;:&#8221;fail&#8221;;</p>
<p>&#8212;&#8212;&#8211; End of file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Campoy</title>
		<link>http://www.ypass.net/blog/2009/06/really-fast-javascript-minify-in-php/comment-page-1/#comment-1540</link>
		<dc:creator>Diego Campoy</dc:creator>
		<pubDate>Thu, 02 Sep 2010 07:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.ypass.net/blog/?p=191#comment-1540</guid>
		<description>Hi guys, 

I patched the code for work with utf8:

---- utf8.patch ---------------------------

--- jsmin-old.c 2009-03-28 04:07:52.000000000 +0100
+++ jsmin.c     2010-09-01 10:12:34.355394829 +0200
@@ -101,7 +101,7 @@
         int theB;
         int theLookahead;
         int error;
-        char *data;
+        unsigned char *data;
         smart_str *buf;
 } jsmin_ctx;
 
@@ -366,7 +366,7 @@
    Return a string to confirm that the module is compiled in */
 PHP_FUNCTION(jsmin)
 {
-       char *arg = NULL;
+       unsigned char *arg = NULL;
        int arg_len;
        jsmin_ctx *ctx;
        smart_str buf = {0};

---------- end of file -----------------------


-------- PHP Test ----------------------------

--------- end of file ------------------------</description>
		<content:encoded><![CDATA[<p>Hi guys, </p>
<p>I patched the code for work with utf8:</p>
<p>&#8212;- utf8.patch &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8212; jsmin-old.c 2009-03-28 04:07:52.000000000 +0100<br />
+++ jsmin.c     2010-09-01 10:12:34.355394829 +0200<br />
@@ -101,7 +101,7 @@<br />
         int theB;<br />
         int theLookahead;<br />
         int error;<br />
-        char *data;<br />
+        unsigned char *data;<br />
         smart_str *buf;<br />
 } jsmin_ctx;</p>
<p>@@ -366,7 +366,7 @@<br />
    Return a string to confirm that the module is compiled in */<br />
 PHP_FUNCTION(jsmin)<br />
 {<br />
-       char *arg = NULL;<br />
+       unsigned char *arg = NULL;<br />
        int arg_len;<br />
        jsmin_ctx *ctx;<br />
        smart_str buf = {0};</p>
<p>&#8212;&#8212;&#8212;- end of file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212;&#8212;&#8211; PHP Test &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8212;&#8212;&#8212; end of file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

