Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-07-13 17:30:43

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,987
Website

4.5 php support

In the history.txt it says: “Removed raw PHP support in pages and articles”.

Can somebody expand on that? Does it mean that we will not allowed to use <txp:php> any more or does it actually say that we will not be able to use php’s enclosing tags (<?)?


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#2 2012-07-13 18:19:46

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,979
Website

Re: 4.5 php support

colak wrote:

we will not be able to use php’s enclosing tags (<?)?

Correct. The use of raw <?php ..?> tags is disallowed entirely from 4.5. The <txp:php> is, however, supported and will remain so.

Hope that puts your mind at rest.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2012-07-13 20:07:09

Gocom
Developer
Registered: 2006-07-14
Posts: 4,476
Website

Re: 4.5 php support

Would be crazy if that referred to the whole PHP support, wouldn’t it ;)

Anyways, note all developer minds out there, that plugins that relay to evalString() or $prefs['allow_page_php_scripting'] will need to update their code. Both of those will be gone in TXP 4.5, and trying to access those leads to errors. See r3706.


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#4 2012-07-13 20:42:34

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,979
Website

Re: 4.5 php support

Gocom wrote:

trying to access those leads to errors.

Yeah, the softly softly approach would be to keep the stub there and continue to throw the error. It’s been deprecated for so long that I figured plugins would be long gone from this arena. Hope that’s true.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2012-07-13 21:10:41

Gocom
Developer
Registered: 2006-07-14
Posts: 4,476
Website

Re: 4.5 php support

Bloke wrote:

Yeah, the softly softly approach would be to keep the stub there and continue to throw the error. It’s been deprecated for so long that I figured plugins would be long gone from this arena. Hope that’s true.

Anything that serve’s its own pages (e.g. rah_external_output) would have been using those even if deprecated, since you need to use those if you wish to support same markup as a page template.

I myself dropped those from rah_external_output’s source promptly after you did that change, and I’m planning on releasing a new version of the plugin in next few hours.

Last edited by Gocom (2012-07-13 21:11:22)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#6 2012-07-14 04:40:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,987
Website

Re: 4.5 php support

Bloke wrote:

The <txp:php> is, however, supported and will remain so.

Hope that puts your mind at rest.

Thanks Stef, It does indeed!


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

Board footer

Powered by FluxBB