flaupretre / pecl-pcs

PHP Code Service
Other
25 stars 4 forks source link

Non working 1.2.0 #1

Closed remicollet closed 8 years ago

remicollet commented 8 years ago

Building pcs 1.2.0

 $ php -n -d extension=modules/pcs.so -m
     # nothing displayed

In debug mode

 $ php -n -d extension=modules/pcs.so -m
 -> PCS MINIT
 Checking if extension spl is loaded: yes
 -> PCS_Tree_getNodeFromPath(internal/parser/ParserInterface.php)
 -> PCS_Tree_getNodeFromPath(internal/parser/StringParser.php)
 <- PCS MINIT
 -> PCS RINIT
 -> PCS Loader_Init
 -> PCS_Loader_loadNode(internal/parser/ParserInterface.php)
 -> generic_open(file pcs://internal/parser/ParserInterface.php)
 -> PCS_Stream_getNodeFromURI(pcs://internal/parser/ParserInterface.php)
 -> PCS_Tree_getNodeFromPath(internal/parser/ParserInterface.php)
 <- PCS_Stream_getNodeFromURI(pcs://internal/parser/ParserInterface.php) => internal/parser/ParserInterface.php
 <- generic_open()
 -> do_stat(pcs://internal/parser/ParserInterface.php)
 <- do_stat()
 -> do_stat(pcs://internal/parser/ParserInterface.php)
 <- do_stat()
 -> PCS_Loader_loadNode(internal/parser/StringParser.php)
 -> generic_open(file pcs://internal/parser/StringParser.php)
 -> PCS_Stream_getNodeFromURI(pcs://internal/parser/StringParser.php)
 -> PCS_Tree_getNodeFromPath(internal/parser/StringParser.php)
 <- PCS_Stream_getNodeFromURI(pcs://internal/parser/StringParser.php) => internal/parser/StringParser.php
 <- generic_open()
 -> do_stat(pcs://internal/parser/StringParser.php)
 <- do_stat()
 -> do_stat(pcs://internal/parser/StringParser.php)
 <- do_stat()
 -> PCS_Loader_registerNode(internal/parser/ParserInterface.php)
 -> PCS_Loader_registerNode(internal/parser/StringParser.php)
 -> PCS_Loader_registerNode(internal/tools/Display.php)
 Parsing script internal/tools/Display.php

Same issue with PHP 5 and 7 (above is with PHP 5.6.16)

remicollet commented 8 years ago

With PR #2

$ php -n -d extension=pcs.so -m
PHP Warning:  Cannot load module 'pcs' because required module 'tokenizer' is not loaded in Unknown on line 0
...

$ php -n -d extension=tokenizer.so -d extension=pcs.so -m
[PHP Modules]
...
pcs
...

And test suite ok (php 5.4, 5.5, 5.6 and 7.0)