Page 1 of 1

php.exe crashes then says update query failed xampp

PostPosted: 03. January 2014 22:54
by supertyper
php.exe crashes then says update query failed xampp...

I am running a php file in shell. What happens is my php.exe ends up crashing it looks like then it says query update failed. Does anyone have any suggestions how to fix this?
Any pointers or suggestions would greatly be appreciated.

Re: php.exe crashes then says update query failed xampp

PostPosted: 03. January 2014 22:58
by Altrea
php_error_log?

Re: php.exe crashes then says update query failed xampp

PostPosted: 05. January 2014 01:07
by supertyper
I went into C:\xampp\php\logs and its not showing anything at all, for that. Is there another error log anywhere ?What I will do is watch php.exe in task manager it will use alot of memory then you see it disappear off the screen right when it stops.

However I did forget to check the windows 7 log.. This is what is showing..


Faulting application name: php.exe, version: 5.4.19.0, time stamp: 0x521402a2
Faulting module name: php5ts.dll, version: 5.4.19.0, time stamp: 0x5214122c
Exception code: 0xc0000005
Fault offset: 0x0005c3da
Faulting process id: 0xa14
Faulting application start time: 0x01cf08c1c4b6b9dc
Faulting application path: C:\xampp\php\php.exe
Faulting module path: C:\xampp\php\php5ts.dll
Report Id: 49ab39a1-74b5-11e3-809f-984be1edd719

Re: php.exe crashes then says update query failed xampp

PostPosted: 05. January 2014 01:45
by Altrea
On my test environment the CLI also logs to the error_log.

Please start php.exe with the -i parameter in the command line to get an output of the settings. I would recommend something like this:
Code: Select all
php.exe -i | find "error"


What also could be helpful is which configuration files are loaded:
Code: Select all
php.exe --ini

Re: php.exe crashes then says update query failed xampp

PostPosted: 06. January 2014 15:37
by supertyper
Output for php.exe -i | find "error"

display_errors => STDOUT => STDOUT
display_startup_errors => On => On
error_append_string => no value => no value
error_log => C:\xampp\php\logs\php_error_log => C:\xampp\php\logs\php_error_log
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
html_errors => Off => Off
ignore_repeated_errors => Off => Off
log_errors => On => On
log_errors_max_len => 1024 => 1024
track_errors => On => On
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off




output for php.exe --ini

Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\xampp\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)

Re: php.exe crashes then says update query failed xampp

PostPosted: 06. January 2014 17:08
by Altrea
Your settings are okay. So i guess that php crashes before it can place a single line into it's log file.
To test this simply create a new PHP file with the following contents and execute it by PHP's CLI
Code: Select all
<?php echo 1 / 0; ?>

You should get a Division by zero warning in your log file

If that works, we can't say anything about your issue without knowing the sourcecode.

Re: php.exe crashes then says update query failed xampp

PostPosted: 07. January 2014 20:11
by supertyper
Yes it brought out the error

[07-Jan-2014 20:09:16 Europe/Berlin] PHP Warning: Division by zero in C:\xampp\htdocs\testecho.php on line 1
[07-Jan-2014 20:09:58 Europe/Berlin] PHP Warning: Division by zero in C:\xampp\htdocs\testecho.php on line 1



Actually I think the update query crashes due to a funky error... that has to do with those funky characters I ran the page by itself and it just the page itself is crashing so much be some foreign funky character


Update >>

Yea that what was causing the error.... >> '

works fine.. That was just inside the php code in certain spots.