We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PHP Crashes if one of the text property in a related model has more than 87 characters

Scenario: I have two models and they are related in initialize as follows a) Users (initialize(){ $this->hasOne('uid', 'UserProfiles', 'uid');}) b) UsersProfiles (initialize(){ $this->belongsTo("uid", "Users", "uid");})

i use $this->userProfiles //this gets me the related userProfile object

Bug:Model UsersProfiles - has a property "Overview" if this property has more than 87 characters PHP crashes on loading this profile object, if reduce the text to 87 everything works well.

Text strings: a)this one works well - "one The site could be temporarily unavailable or too busy. Try again in a few moments." b) this one crashes, it is more than 87 characters- "ones the site could be temporarily unavailable or too busy. Try again in a few moments."

PHP Error - log

[Tue Jan 12 20:58:46 2016] [notice] Parent: child process exited with status 3221225725 -- Restarting. [Tue Jan 12 20:58:46 2016] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations [Tue Jan 12 20:58:46 2016] [notice] Server built: Jan 28 2012 11:16:39 [Tue Jan 12 20:58:46 2016] [notice] Parent: Created child process 6720 [Tue Jan 12 20:58:46 2016] [notice] Child 6720: Child process is running [Tue Jan 12 20:58:46 2016] [notice] Child 6720: Acquired the start mutex. [Tue Jan 12 20:58:46 2016] [notice] Child 6720: Starting 250 worker threads. [Tue Jan 12 20:58:46 2016] [notice] Child 6720: Starting thread to listen on port 8080.

I still have no clue why this is happening, how do i debug further? which log other than php log can have more information?

Nothing you do should be able to cause PHP to crash. Since it clearly is, then this is a bug in Phalcon. I would suggest posting this as an issue in Github.

Perhaps look at the database log - if this bug happens when database data is loaded, perhaps it's a database problem.