Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Tue Oct 24, 2017 5:55 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: php init
PostPosted: Fri Oct 09, 2009 11:32 am 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

During php initialisation, failure to find r3s php script cause a "brutal" exit of the application (exit(10): line 363 php.c).

It is annoying :( , the application can run without this, r3s functionnality will be disable that's all
It cause a simily application crash without serious reason.

Is there some objectif to remove exit(10) leaving warning message ?

Have a nice day
Ouille.


Top
 Profile  
 
 Post subject: Re: php init
PostPosted: Fri Oct 09, 2009 2:05 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
Well ... interesting question.

Here's how I see things currently: rayphp is mandatory, Raydium can't work properly without (no R3S, no packages, ...) so it's important to be sure that rayphp is available before doing anything else. I've, for instance, seen many packaging errors with ManiaDrive (example: Mandriva release of MD is broken because of this) where rayphp was missing and were the game finally crash when you ask for something that needs rayphp.

On the other hand, you're right, you can imagine a lot of applications that does not need rayphp.

Perhaps an option would be to add a "rayphp_disable" function to allow specific applications to run even without rayphp ?


Top
 Profile  
 
 Post subject: Re: php init
PostPosted: Fri Oct 09, 2009 2:16 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

It will be tricky.

Perhaps it's rayphp error handling that need to be corrected.

It's not correct to leave app, because one "optionnal" functionnality is missing, and probably this app don't need it.

But if this functionnality is missing, there are some chance to have an application dirty crash after if application need it.
Perhaps the best way is to raise error at this time, avoid crash. Perhaps a flag, no rayphp dir found, disable rayphp functionnality.

As this exit is in init part of raydium, a flag don't seem to be a good solution, it will overhead source code.

So we live this as is. I'll try to change payphp error handling if i can.

The question seem's complicated, that's why i post it before commit.

Have a nice day
Ouille.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group