Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium Milestone-Release-1.2

New issue 1995 by [email protected]: Segmentation faults when calling __toString() magic method implicitly
http://code.google.com/p/qubit-toolkit/issues/detail?id=1995

In some situations, specially under fastcgi in prod mode, PHP segfaults trying to call __toString() implicitly. Calling this method explicitly fix the problem, but we have many calls like this in different parts of our code.

It's curious that running in debug mode solves the problem.

It would be interesting to isolate this problem and try running recent PHP versions to check if the problem was solved or trying to track the bug in the PHP project, if exists.

Typical fix, replace this line:

if (1 > strlen($title = $this->resource))

To:

if (1 > strlen($title = $this->resource->__toString()))

--
You received this message because you are subscribed to the Google Groups "Qubit 
Toolkit Issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-issues?hl=en.

Reply via email to