gcode-mirror / phamlp

Automatically exported from code.google.com/p/phamlp
0 stars 0 forks source link

no css generation with PHP 5.3.1 #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. my scss generator
<?php
$_GET['file'] = '/Users/ckoch/Dropbox/PHP/app/styles/style.scss';
/**
 * generate a SASS
 *
 * @author Christian Koch
 */
// tell the browser that this is a CSS file
header("Content-type: text/css");
// load SASS
// TODO dynamic include path
include '/Users/ckoch/Dropbox/PHP/PHamlP_3/sass/SassParser.php';
// instantiate
$sass = new SassParser(array('style' => 'nested', 'debug_info' => true));
// generate url get param file
$css = $sass->toCss($_GET['file']);
// output
echo $css;
2. my scss file
$myc: #963

h1 {
    color:$myc;
}

What is the expected output? What do you see instead?

there is no output but the object is created toCSS() does nothing

What version of the product are you using? On what operating system?

current version PHP 5.3.1 on a mac

Please provide any additional information below.

there is also no debug info :(

Original issue reported on code.google.com by koch.chris@gmail.com on 18 Oct 2010 at 6:32

GoogleCodeExporter commented 9 years ago
Could be related to:

Strict standards: Declaration of SassCommentNode::isa() should be compatible 
with that of SassNode::isa() in 
/Users/digitarald/Sites/poken.com/hub-3/lib/vendor/phamlp/sass/tree/SassNode.php
 on line 13

Enabling display_errors would help, so you see error :-)

Original comment by har...@poken.com on 21 Nov 2010 at 5:54

GoogleCodeExporter commented 9 years ago
I get this too. I am on PHP Version 5.3.2-1ubuntu4.5

Strict standards: Declaration of SassPropertyNode::isa() should be compatible 
with that of SassNode::isa() in 
/home/aster/www/phamlp/vendors/phamlp/sass/tree/SassNode.php on line 19

Call Stack:
    0.0000     633728   1. {main}() /home/aster/www/phamlp/asdf.php:0
    0.0001     709448   2. include('/home/aster/www/phamlp/vendors/phamlp/sass/SassParser.php') /home/aster/www/phamlp/asdf.php:3
    0.0003     765472   3. require_once('/home/aster/www/phamlp/vendors/phamlp/sass/tree/SassNode.php') /home/aster/www/phamlp/vendors/phamlp/sass/SassParser.php:26

Original comment by sumwai....@gmail.com on 1 Dec 2010 at 3:23

GoogleCodeExporter commented 9 years ago
Attaching quick fix for this.

Original comment by cadosolu...@gmail.com on 3 Jan 2013 at 10:23

Attachments: