php.exe crashes then says update query failed xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

php.exe crashes then says update query failed xampp

Postby supertyper » 03. January 2014 22:54

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.
supertyper
 
Posts: 4
Joined: 03. January 2014 22:44
Operating System: windows 7

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

Postby Altrea » 03. January 2014 22:58

php_error_log?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby supertyper » 05. January 2014 01:07

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
supertyper
 
Posts: 4
Joined: 03. January 2014 22:44
Operating System: windows 7

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

Postby Altrea » 05. January 2014 01:45

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby supertyper » 06. January 2014 15:37

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)
supertyper
 
Posts: 4
Joined: 03. January 2014 22:44
Operating System: windows 7

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

Postby Altrea » 06. January 2014 17:08

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby supertyper » 07. January 2014 20:11

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.
supertyper
 
Posts: 4
Joined: 03. January 2014 22:44
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests