zhanjh / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Minify_Cache_ZendPlatform. Zend Platform storage for Minify #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I created a cache adapter for Zend Platform, it's based on the APC adapter.
(real easy fix, just changed 2 function names :D)

Would be nice to have this in the next official release.

Original issue reported on code.google.com by scoutypa...@gmail.com on 30 Mar 2010 at 3:09

Attachments:

GoogleCodeExporter commented 9 years ago
Nice! Thanks.

Original comment by mrclay....@gmail.com on 2 Apr 2010 at 2:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Minify version: 2.1.3
PHP version: 5.2.12

What steps will reproduce the problem?

1. Save the above script in "min/lib/Minify/Cache".
2. Add the following snipped to "min/config.php".

require 'lib/Minify/Cache/ZendPlatform.php';
$min_cachePath = new Minify_Cache_ZendPlatform();

3. Open "min_unit_tests/test_all.php" in browser.

Actual output:

"Catchable fatal error:  Object of class Minify_Cache_ZendPlatform could not be 
converted to string in [...]min_unit_tests/test_Minify_Cache_File.php on line 
16<br />"

Original comment by webmaste...@gtempaccount.com on 11 Jul 2010 at 5:56

GoogleCodeExporter commented 9 years ago
test_Minify_Cache_File.php (unwisely) assumes config.php is set up for the File 
cache. So, TODO in the 2.1.4 branch:

1. add ZendPlatform.php
2. create test_Minify_Cache_ZendPlatform.php (based on 
http://code.google.com/p/minify/source/browse/branches/2.1.4/min_unit_tests/test
_Minify_Cache_APC.php )
3. fix test_Minify_Cache_File to not depend on config.php

Original comment by mrclay....@gmail.com on 11 Jul 2010 at 11:03

GoogleCodeExporter commented 9 years ago
Integrated in R420

Original comment by mrclay....@gmail.com on 25 Jul 2010 at 5:16