[3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
orynider
Translator
Posts: 271
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

[3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by orynider »

Undefined constant 'T_CONCAT_EQUAL' in vendor\s9e\text-formatter\src\Configurator.php on line 3278
http://localhost/phpBB/memberlist.php?s ... rofile&u=2

Code: Select all

( ! ) Fatal error: Undefined constant 'T_CONCAT_EQUAL' in C:\Wamp\www\Rhea\vendor\s9e\text-formatter\src\Configurator.php on line 3278
Call Stack
#	Time	Memory	Function	Location
1	0.0156	446216	{main}( )	...\memberlist.php:0
2	1.8096	10290472	generate_text_for_display( )	...\memberlist.php:620
3	1.8096	10292080	Symfony\Component\DependencyInjection\ContainerBuilder->get( )	...\functions_content.php:584
4	1.8096	10292208	Symfony\Component\DependencyInjection\Container->get( )	...\ContainerBuilder.php:446
5	1.8096	10292456	phpbb_cache_container->getTextFormatter_S9e_RendererService( )	...\Container.php:295
6	1.8252	10476664	phpbb\textformatter\s9e\renderer->__construct( )	...\container_4335734bbdd20f586549a504dff5f80c.php:3922
7	1.8252	10476840	phpbb\textformatter\s9e\factory->regenerate( )	...\renderer.php:97
8	15.8340	13197968	s9e\TextFormatter\Configurator->finalize( )	...\factory.php:389
9	17.1912	13245400	s9e\TextFormatter\Configurator\Rendering->getRenderer( )	...\Configurator.php:93
10	17.1912	13245488	s9e\TextFormatter\Configurator\RendererGenerators\PHP->getRenderer( )	...\Configurator.php:5465
11	17.1912	13245648	s9e\TextFormatter\Configurator\RendererGenerators\PHP->generate( )	...\Configurator.php:5219
12	17.1912	13263680	array_map ( )	...\Configurator.php:5233
13	17.1912	13263904	s9e\TextFormatter\Configurator\RendererGenerators\PHP->compileTemplate( )	...\Configurator.php:5233
14	17.4564	13270712	s9e\TextFormatter\Configurator\RendererGenerators\PHP\Optimizer->optimize( )	...\Configurator.php:5275
15	17.4564	13379352	s9e\TextFormatter\Configurator\RendererGenerators\PHP\Optimizer->optimizeOutConcatEqual( )	...\Configurator.php:3190
Open: includes\startup.php

Find:

Code: Select all

date_default_timezone_set(@date_default_timezone_get());
Add After:

Code: Select all

/* Define the tokens from the symbol table, just in case are not compiled in PHP5  */
if(!defined('T_CONCAT_EQUAL'))
{
			@define('T_CONCAT_EQUAL', 275);
			@define('T_STRING', 310);
			@define('T_OBJECT_OPERATOR', 363);
			@define('T_VARIABLE', 312);
			@define('T_CONSTANT_ENCAPSED_STRING', 318);
			@define('T_LNUMBER', 308);	
			@define('T_IF', 304);
			@define('T_ELSE', 306);
			@define('T_ELSEIF', 305);
			@define('T_WHITESPACE', 379);
			@define('T_FOR', 323);
			@define('T_FOREACH', 325);
			@define('T_WHILE', 321);
			@define('T_COMMENT', 374);
			@define('T_DOC_COMMENT', 375);
}
/**
*/
Server: https://github.com/orynider/php-5.6.3x4VC9/releases
Last edited by Mick on Mon Dec 10, 2018 10:33 am, edited 1 time in total.
Reason: Added code tags for clarity.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by Mick »

I'm not seeing a support question here.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
orynider
Translator
Posts: 271
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by orynider »

Mick wrote: Mon Dec 10, 2018 10:34 am I'm not seeing a support question here.
I could ask: There is another way to make this PHP constants work?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by Mick »

It's still not a support request, I'll move it for you.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by kasimi »

It looks like your PHP distribution is incomplete. Compare tokenizer_data.c in PHP's repo with the tokenizer_data.c in your repo.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by 3Di »

orynider wrote: Mon Dec 10, 2018 7:18 pm There is another way to make this PHP constants work?
Sure thing, use http://wampserver.aviatechno.net/ for your development needs.
Especially check your VC++ packages installed. it's all there ready to be used.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
orynider
Translator
Posts: 271
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by orynider »

3Di wrote: Mon Dec 10, 2018 8:18 pm
orynider wrote: Mon Dec 10, 2018 7:18 pm There is another way to make this PHP constants work?
Sure thing, use http://wampserver.aviatechno.net/ for your development needs.
Especially check your VC++ packages installed. it's all there ready to be used.
I'm using Wampee (Portable Version) and first time to do when I have free time and the PCs work is to upgrade the project at github to 5.6.39 with another 3 extensions upgraded. :D
User avatar
orynider
Translator
Posts: 271
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: [3.2.25-RC1]Undefined constant 'T_CONCAT_EQUAL'

Post by orynider »

kasimi wrote: Mon Dec 10, 2018 7:49 pm It looks like your PHP distribution is incomplete. Compare tokenizer_data.c in PHP's repo with the tokenizer_data.c in your repo.
Restoring this file solves solves the problem with Vanilla phpBB 3.2.24. 8-)
Post Reply

Return to “phpBB Custom Coding”