Tag-Archive for ◊ PHP CLI crashes ◊

Author:
Friday, January 29th, 2010

While working on symfony framework we faced some issues and in this blog I am going to discuss about the issues and fixes for that issues.

Problem 1 :

symfony 1.2 propel-build-model Bus error

(Crashes PHP CLI when we try to execute

symfony propel-build-model or

symfony propel-build-all

)
Solution :

Execute €˜symfony propel-build-model’ ends with ‘Bus error’

I found this is caused by one field type in db with default value:

I have a column called €˜created_at’of type: timestamp with default value ‘CURRENT_TIMESTAMP’, this is on MYSQL level.

Execute €˜propel-build-schema’ at symfony command line

you will get

created_at: { type: TIMESTAMP, required: true, defaultValue: CURRENT_TIMESTAMP } then, run ‘propel-build-model’, you would get ‘Bus error’

propel generator might not know ‘CURRENT_TIMESTAMP’. After removing this from scheme.yml, you can run that script smoothly.

Problem 2 :

When we tried to host the symfony project which we developed to Linux server, it displayed blank page.

Solution :

It’s because of the case sensitivity of filenames.

Ex: we have a file Test.php, in windows if we include test.php it will work but in Linux it will fail because of case sensitivity.