GAE php 500 error on split / list

49 views
Skip to first unread message

Jukka Hautakorpi

unread,
Jul 10, 2017, 6:38:15 AM7/10/17
to Google App Engine

Suddenly my app started to get 500 error with no reasonable reason, from logs just
 logMessage:  "This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application."     
logMessage:  "While handling this request, the process that handled this request was found to be using too much memory and was terminated. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you may have a memory leak in your application."     

I edited the php code of the page and it was this line:
list($username,$domain)=split('@',$email);

my apps runtime is php55

Why is this all of a sudden (started 3.7.2017) ?

Jukka Hautakorpi

unread,
Jul 11, 2017, 2:44:46 AM7/11/17
to Google App Engine

Workaround code:
$tmpvar = explode('@', $email);
$username=$tmpvar[0];
$domain=$tmpvar[1];

This did not cause any problems on my local apache server, didn't try the local gae-server.

Yannick (Cloud Platform Support)

unread,
Jul 11, 2017, 9:52:50 AM7/11/17
to Google App Engine
Hello, thanks for this message. We are aware of this issue and working on resolving it but I do not have an ETA to share at the moment, nor can I guarantee it will be fixed.

It is specifically "split" that triggers this issue in php 5.5 and "explode" is a recommended workaround. 
Reply all
Reply to author
Forward
0 new messages