 |
����������: ����������� ���������� ����������� � ������� 3.0.7 � �����.
������ ���������� ������������� � PHP ���������. ���� ��� ��������� ���������:
0 - NORMAL 1 - ABORTED 2 - TIMEOUT
����� PHP-������ ������� ���������, ������� ������ NORMAL.
���� �������� ������ �������������, ������� ���� ABORTED. ������������
��������� ������� ���������� ���� ����� �����, ����� ������������ ��������
������ STOP ��������. ���� ��������� ����������� �������, ������������� PHP (��.
set_time_limit()), ������� ���� TIMEOUT.
�� ������ ������, �������� �� ���������� ������� ���������� ������ ������
�������. ������ ������ ������ ��������� ���� ������� �� �����, ���� ����
����������� �������� �������, ����������� �����. �� ���������, ������, ���
������ ��������� ������, ����� �������� ������ �������������. ��� ���������
����� ���� ����������� ���������� ignore_user_abort � ����� php.ini, � ����� ����� ��������������� "php_value ignore_user_abort" Apache .conf-���������
��� �������� ignore_user_abort().
���� �� �� ������� PHP ������������ ���������� ������ ������������� �
������������ ��� ������, ��� ������ ���������� ������. ������������
����������, ����� �� ���������������� shutdown-������� � ��������������
register_shutdown_function().
����� ��� ���� �������� ������������ �������� ������ STOP, ��� ������ �
��������� ������ �������� ������� ���-������, PHP ������������, ��� ����������
���� ���������, � ���������� shutdown-�������.
��� shutdown-������� ����� ����� ������� � ����� ����������� ����������
������ ������ �������, �������, ��� ���� ����� ������� ���-������ ������ �
������ ������������ �������, �� ������ ������������ �������
connection_aborted(). ��� ������� ��������� TRUE, ���� ���������� ���� ���������.
���������� ������ ������� ����� ���� ����� �������� ���������� �������� �������.
������� �� ��������� ���������� 30 ������. �� ����� ���� ������� ����
������������� ��������� max_execution_time � php.ini ��� ���������������
"php_value max_execution_time" Apache .conf-����������, � ����� ��������
set_time_limit(). ����� ������� �������������, ������ ������� ��������, �, ���
� � ������ � ������������� �������, ���� shutdown-������� ���� ����������������, ���
����������. � ���� shutdown-������� �� ������ ���������, ������ �� �������
������ shutdown-�������, � ������� �������
connection_timeout(). ��� ������� ���������� TRUE, ���� ������� ������� ��� shutdown-�������.
������������, ��� ���������� ��������, ��� ��� ������� ABORTED � TIMEOUT
����� ���� ������� ������������. ��� ��������, ���� �� �������
PHP ������������ ���������������� ���������� ����������. PHP ����� ��������
��� ����, ��� ������������ ����� ��������� ����������, �� ������ ���������
������. ���� ����� ������� �������, ������ ����� �������, � ���� shutdown-�������,
���� �������, ����� �������. � ���� ����� �� ������ �������, ��� �������
connection_timeout() �
connection_aborted() ����������
TRUE. �� ����� ������ ��������� ��� ������� � ����� ������
connection_status(). ��� ������� ���������� ������� ���� �������� ��������. �������, ���� ���
������� �������, ���, � �������, ��������� 3. |
|