E
E
Evgeny Ilin2012-03-21 14:34:12
linux
Evgeny Ilin, 2012-03-21 14:34:12

Installing Blitz Template for php 5.3||5.4?

Hey habr!
There was a need to install blitz on a new machine.
when make produces

/root/blitz-0.6.10/blitz.c:30:23: error: safe_mode.h: No such file or directory
/root/blitz-0.6.10/blitz.c: In function 'blitz_exec_wrapper':
/root/ blitz-0.6.10/blitz.c:1732: warning: passing argument 3 of 'php_escape_html_entities' from incompatible pointer type
/usr/include/php5/ext/standard/html.h:57: note: expected 'size_t *' but argument is of type 'int *'
/root/blitz-0.6.10/blitz.c: At top level:
/root/blitz-0.6.10/blitz.c:4041: error: expected '=', ',' , ';', 'asm' or '__attribute__' before 'blitz_functions'
/root/blitz-0.6.10/blitz.c: In function 'zm_startup_blitz':
/root/blitz-0.6.10/blitz.c:4083: error: 'blitz_functions'undeclared (first use in this function)
/root/blitz-0.6.10/blitz.c:4083: error: (Each undeclared identifier is reported only once
/root/blitz-0.6.10/blitz.c:4083: error: for each function it appears in.)

we have
php -v
PHP 5.4.0-2 (cli) (built: Mar 5 2012 12:52:15)
Copyright © 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2012 Zend Technologies

uname -a
Linux synlexpro 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux

Is it curable?
There is an assumption that the error is due to a version mismatch of php.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WEBIVAN, 2012-03-21
@WEBIVAN

If you downloaded the archive from Blitz, try copying it directly from the repository.
If in this case it also fails, most likely the extension has not been adapted to work with 5.4. Post about the problem in backtracker...

E
Evgeny Ilin, 2012-03-21
@geirby

I'll leave this here for others

php -m | grep "bli"
PHP Warning: PHP Startup: blitz: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525

searching for the magic potion

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question