Categories > TinyButStrong general >

SUB-BLOCK ERROR IN PHP 4.4.3 (in fact 4.4.1)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: marcos
Date: 2005-11-11
Time: 20:29

SUB-BLOCK ERROR IN PHP 4.4.3 (in fact 4.4.1)

I'm having the following problem with TBS Class
The PHP version was changed in my server, I use to use 4.3.11 version with a class TBS 2.05, after change the PHP  version to 4.4.3, the accion to produce "Sud Blocks" starts showing defects.
It cant realize the proceedment, only shows the first grup and the first sub item repetitively.

I would like your help.
By: Skrol29
Date: 2005-11-11
Time: 20:55

Re: SUB-BLOCK ERROR IN PHP 4.4.1

Can you try with the last version TBS 2.05.3 because it fixes a likely problem with Php 5.0.5.
It the problem is stilll there, can you send to me a piece of template to reprocude it.
By: marcos
Date: 2005-11-11
Time: 21:11

Re: SUB-BLOCK ERROR IN PHP 4.4.1

Even with PHP 4.4.3 installed, Do I have to use the TBS 2.05.3 for PHP5 ???
By: scribe
Date: 2005-11-12
Time: 04:22

Re: SUB-BLOCK ERROR IN PHP 4.4.1

Hello, everyone.

I used TBS 2.05.3 in my bulletin board. It was OK.
But when I updated PHP form 4.4.0 to 4.4.1, the sub-blocks had an error.
Though the sub-blocks were printed, they were the same data.

By the way, the "Sub-blocks" example have this error,too.
Does PHP 4.4.1 change some rule of array?
By: Skrol29
Date: 2005-11-12
Time: 14:18

Re: SUB-BLOCK ERROR IN PHP 4.4.1

I have the same problems when migrate to Php 4.4.1.
I'm looking at this and will post a message when the fix is available.

> Even with PHP 4.4.3 installed, Do I have to use the TBS 2.05.3 for PHP5 ???

No. It was just to say that a similar bug on Pgp 5.0.5 was fixed with TBS 2.05.3. But it seems to not fix the bug with Php 4.4.1.
By: marcos
Date: 2005-11-13
Time: 15:39

Re: SUB-BLOCK ERROR IN PHP 4.4.1

this is a the link for diff php 4.3.11 to 4.4.0 or 4.4.3:

http://www.php.net/ChangeLog-4.php#4.4.1

i was trying to correct this bug, and see that the prorpert $Loc, in php 4.3.11 use print_f() print serial values this correct, but in php 4.4.0 print values empty.
By: marcos
Date: 2005-11-13
Time: 15:40

Re: SUB-BLOCK ERROR IN PHP 4.4.1

this is a the link for diff php 4.3.11 to 4.4.0 or 4.4.3:

http://www.php.net/ChangeLog-4.php#4.4.1

i was trying to correct this bug, and see that the prorpert $Loc, in php 4.3.11 use print_f() print serial values this correct, but in php 4.4.0 print values empty.
By: Skrol29
Date: 2005-11-13
Time: 18:43

Re: SUB-BLOCK ERROR IN PHP 4.4.1

A bad bug wich appears with Php 4.4.1 and disapeard with Php 4.4.2-dev makes troubles with Array pointers.

Reference to the bug:
  http://bugs.php.net/bug.php?id=35084

Array pointers are used in TBS to manage merges with Array or merges for several block with one data source.

Since this bug hasn't a easy workaround, it is recommanded to simply not use PHP 4.4.1.
Next Php version (4.4.2dev) seems to have fixed this bug yet.
By: Skrol29
Date: 2005-11-13
Time: 23:09

Re: SUB-BLOCK ERROR IN PHP 4.4.1

I suppose you're talink about PHP 4.4.1 because 4.4.3 is not yet released.
By: marcos
Date: 2005-11-14
Time: 16:55

Re: SUB-BLOCK ERROR IN PHP 4.4.1

yeah, i was spoke about php version 4.4.1.
you make a test with php version 4.4.0 ???
By: Skrol29
Date: 2005-11-14
Time: 16:58

Re: SUB-BLOCK ERROR IN PHP 4.4.1

> you make a test with php version 4.4.0

Yes I did. No such problem with PHP 4.4.0.
The bug appears with 4.4.1, and is about to disappear with 4.4.2.
By: marcos
Date: 2005-11-14
Time: 17:02

Re: SUB-BLOCK ERROR IN PHP 4.4.1

tanks, my host make the update php 4.3.11 to php 4.4.2 without info me. but I obtained a new servr with php version 4.4.0.
By: Skrol29
Date: 2005-12-29
Time: 00:29

Re: SUB-BLOCK ERROR IN PHP 4.4.1

Hum well... the very last TBS version, now available for download, brings a patch for this PHP 4.4.1 bug.
By: marcos
Date: 2006-02-20
Time: 16:19

Re: SUB-BLOCK ERROR IN PHP 4.4.1

Scroll29

I m using the new tbs version (2.05.7) but the problem with sub blocks continue.

help me.
By: marcos
Date: 2006-02-20
Time: 16:34

Re: SUB-BLOCK ERROR IN PHP 4.4.1

By: marcos
Date: 2006-02-20
Time: 17:09

Re: SUB-BLOCK ERROR IN PHP 4.4.1

* Merging problems with PHP 4.4.1
---------------------------------
This PHP version has a bad bug about Array global variables assigned by
reference (bug info at http://bugs.php.net/bug.php?id=35084). This PHP
bug makes TBS to seem to display allays the same record when using
MergeBlock() with the keyword 'array' as data source.
Example : $TBS->Merblock('blk','array','myvariable');
This PHP bug is by-passed by TBS using a trap which makes this feature a
bit less optimized but only with PHP 4.4.1. This bug is already supposed
to disappear with the next PHP version.



I'm not understanding... 
Can you give me an exemple about the trap I can use to fix it?
By: Skrol29
Date: 2006-02-20
Time: 17:29

Re: SUB-BLOCK ERROR IN PHP 4.4.1

This is strange. Acording to your URL, there is a code sctructure problem in the TBS class itself. This far from the PHP 4.4.1 bug noticed in this thread.

Could you check the code source at the line noticed?
In the normal TBS source, this line is a Constant definition like the previous one and the next one.
By: Skrol29
Date: 2006-02-20
Time: 17:32

Re: SUB-BLOCK ERROR IN PHP 4.4.1

It should be trapped yet with TBS 2.05.7

The bug can happen when you have something like:
  $x =& $an_array;
It doesn't produce any error message, but it makes PHP to return bad values when reading the array.
By: marcos
Date: 2006-02-20
Time: 17:45

Re: SUB-BLOCK ERROR IN PHP 4.4.1

i have already try everything. but didnot work.

is there any possibility about sub-block work in php 4.4.1 ???
if yes how ??? can you give me an example.
By: Skrol29
Date: 2006-02-21
Time: 11:28

Re: SUB-BLOCK ERROR IN PHP 4.4.1

I'm stuck with your problem. I can't figure out what is not working.
Do you still have the PHP error message ?
If you still have it, this is the start to dig in order to find what's is wrong.
tbs_class.php should be correctly accepeted by PHP even when called alone, and even with PHP 4.4.1.

The bug with PHP 4.4.1 should only produce bad information displayed. Not error messages. And so far, this problem is fixed with TBS 2.05.7.