parcela2 Posted December 29, 2017 Posted December 29, 2017 I have been used Tommy server a year and use postgreSQL database under PHP web. Recently i changed my domain from .tk to .red and I'm experiencing problems with functions pgsql in PHP. The principal: After closing a pgsql connection with: pg_close($dbconn); the php die and stops all with this instruction even if the connection with db is successfull. Before change my domain, this issue did not appear. an example: https://www.laparcela.red/control/test.php After "Conectado con éxito" there are a echo "Hola mundo" and not appears. This also happens if the connection is not correct. $dbconn = pg_connect("host=localhost .. etc) or die("No se pudo conectar"); echo "Conectado con éxito"; pg_close($dbconn); echo '<p>Hola Mundo</p>'; or die not works. Quote
parcela2 Posted December 29, 2017 Author Posted December 29, 2017 (edited) Php 5.6, the same that the other domain. I think that the problem is the domain change.Any registry are configured to .tk to vew: https://www.laparcela.red/info.php Here is the same script http://www.valiantz.es/test.phpwith a other info php to comparehttp://www.valiantz.es/info.php Edited December 29, 2017 by parcela2 Quote
Krydos Posted December 29, 2017 Posted December 29, 2017 What happens when you switch laparcela.red to php 7.1 too? Quote
parcela2 Posted December 29, 2017 Author Posted December 29, 2017 The same, ant the last version not have pgsql, i think that the 7.2 It is very strange, somethong is wrong since the domain change Quote
parcela2 Posted December 29, 2017 Author Posted December 29, 2017 (edited) Yes yes, i say that the 7.2 version not have pgsql and with 7.1 the problem is the same. Today i tested it to change versions Edited December 29, 2017 by parcela2 Quote
parcela2 Posted December 30, 2017 Author Posted December 30, 2017 There are any solution possible? I think that is general and if someone change the domain, suffers the same. Maybe restarting the web space will solve the problem. Quote
Krydos Posted December 30, 2017 Posted December 30, 2017 I was just waiting for you to change the php of parcela.red to 7.1. Quote
Krydos Posted December 30, 2017 Posted December 30, 2017 Weird, now it's doing a segmentation fault and dumping cores... Quote
parcela2 Posted December 30, 2017 Author Posted December 30, 2017 I see:core.31616core.26912core.25142 That is the problem. The system fails for something. Something is wrong. Quote
parcela2 Posted December 30, 2017 Author Posted December 30, 2017 The dumping cores are PHP generated or other platform? Quote
Krydos Posted December 31, 2017 Posted December 31, 2017 The problem is the pg_close() for some reason. If you comment that out it works https://www.laparcela.red/control/test.php Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.