Using the CRUD database and files from the knowledge base link (http://
kb.4d.com/search/assetid=76084), I performed a series of SELECT
queries against the database that originated in the read.php file. The
goal is to query for all records where a field that may or may not be
populated. The field Customers.Region is not populated for every
record in the CRUD database.
The following query: $sql = 'SELECT ContactName, CompanyName, Region,
Country FROM Customers WHERE ContactTitle = \'' . $title . '\' ';
works as expected.
Whereas this query: $sql = 'SELECT CompanyName, Region FROM Customers
WHERE ContactTitle = \'' . $title . '\' '; does not. Note: the fields
ContactName and Country have been removed from the query.
Expected results: the same number of records with only the 2 columns.
Actual results: Control never returns to the Apache server from the 4D
SQL server.
4D Server Administrator on the SQL Server tab shows that a SQL
connection is made. The browser shows that the Apache server has been
requested. Execution was started at 21:39:00. Browser was still
attempting to load at 21:42:00. Connection to SQL server is only
dropped when Apache server is manually stopped. As Apache doesn’t have
control, PHP can’t implement “max_execution_time” (which is set to the
default of 30 seconds).
Apache Server Error Log:
Parent: Received shutdown signal -- Shutting down the server.
Child 3860: Exit event signaled. Child process is ending.
Child 3860: Released the start mutex
Child 3860: All worker threads have exited.
Child 3860: Child process is exiting
Parent: Child process exited successfully.
Child 1640: Waiting 30 more seconds for 1 worker threads to finish.
Child 1640: Waiting 0 more seconds for 1 worker threads to finish.
Child 1640: Terminating 1 threads that failed to exit.
Child 1640: All worker threads have exited.
Child 1640: Child process is exiting
Web server: Apache 2.2.17, PHP 5.3.3 (MSVC9 (Visual C++ 2008)) on a
Windows Server 2003 Standard Edition Service Pack 2. I'm assuming the
version of PDO is 0.3 even though a phpinfo() shows 0.1 alpha as I
obtained the .dll from .zip link at
http://forums.4d.fr/Post/FR/3549301/1/3601455#3601455
4D: v12.1 build 82774 on a Windows Server 2008 Standard Edition and
Windows Seven Business Edition, 64-bit