1
ramazz
xoops 2.0.8/2.0.9 and php5 crashes IS a PHP5 issue, not a xoops issue
  • 2004/11/2 18:42

  • ramazz

  • Just popping in

  • Posts: 14

  • Since: 2004/10/27


Not sure if this has been mentioned already but I have been working with novell on the issue of installing certain larger modules in XOOPS 2.0.8 and 2.0.9 on a php5.x system and they have found the bug in php5.x and reported the bug. Hopefully it gets fixed asap and rolled into a php 5.0.3 soon.

http://bugs.php.net/bug.php?id=30457

Rodney

2
Mithrandir
Re:xoops 2.0.8/2.0.9 and php5 crashes IS a PHP5 issue, not a xoops issue

I am not experienced in reading these bug reports, but if I understand it correctly, if one gets the message:
Segmentation fault

it may be that the error really is
Fatal error: Function name must be a string in %s on line %d

Is that understood correctly?

If so, I have not seen that error or heard of it in relation to XOOPS - but thank you very much for relaying it here. With the introduction of XOOPS 2.0.9 beta, it is rather important to know, whether the errors reported are XOOPS or PHP-related.

Do keep us informed on this and other relevant bugs.

/Mith

3
ramazz
Re:xoops 2.0.8/2.0.9 and php5 crashes IS a PHP5 issue, not a xoops issue
  • 2004/11/2 19:18

  • ramazz

  • Just popping in

  • Posts: 14

  • Since: 2004/10/27


Hehe. U probably understand it better than I do. I simply found the issue annoying while testing the port of php 5.0.2 on my netware server as it would cause an abend so reported it to the novell dev's as I had assumed it was netware specific. Turns out it wasn't an issue only on Netware.

The last post (the real long one) in the php bug report has all the dirty details of where and why.

----------
The code snippet which causes this segmentation fault
might sound funny. But it is the root cause of major functionality in
xoops application.

This will happen only with 7 character member arrays which is indexed
with non existent entry and function call is made on that.

Based on my study of the issue let me explain this,

$somenonexistentobject->sevench[0]()

$somenonexistentobject->sevench[0] this evaluates to Long.

While zend_do_begin_method_call
last_op_number = get_next_op_number(CG(active_op_array))-1;
last_op = &CG(active_op_array)->opcodes[last_op_number];

Assumes last_op's op2 to be string always which is incorrect in this
case.

etc...
-----------

Apparently Kameshj already fixed php in the cvs so hopefully his patches stick and we see them in a public release of php 5.0.3 or 5.1 soon. I'm probably just gonna compile the cvs fixed version for myself and will host it on my site for any netware users looking for it. Not sure when I'll have the time though.

Current netware ports by Guenter Knauf are athttp://www.gknw.com/php/dev/

A Novell supported/maintained build of 5.x will be included with netware starting with 6.5sp3 and OES. I think their version already has the fix in it
6.5sp3 and oes are in authorized beta right now so either sign up to join the betas at www.novell.com/beta or wait for the public betas later in November

Rodney

Login

Who's Online

109 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 109


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits