调用存储过程时,Apache Web服务器挂起

时间:2011-10-10 10:50:34

标签: php mysql apache stored-procedures

我正在写一个基于PHP的网站。

我的规格:

  • XAMPP版本1.7.4
  • Windows Vista
  • Firefox 3.6
  • AdoDB图层

我有一个MySQL数据库,其中包含一个表和一个存储过程:

CREATE DEFINER=`root`@`localhost` PROCEDURE `user_get_password`(IN `p_user_name` VARCHAR(10))
LANGUAGE SQL
NOT DETERMINISTIC
MODIFIES SQL DATA
SQL SECURITY DEFINER
COMMENT ''
BEGIN SELECT user_password FROM users WHERE user_name = p_user_name LIMIT 1; END

当我尝试调用存储过程时:

$res = $db -> Execute ("call user_get_password('" . check_marks( $_POST['user_name'] ) . "');");

Apache Web服务器崩溃并停止。

有人知道我的代码有什么问题吗?

apache error.log几乎为空:

[Mon Oct 10 13:09:59 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 10 13:09:59 2011] [notice] Digest: done
[Mon Oct 10 13:12:15 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 10 13:12:15 2011] [notice] Digest: done
[Mon Oct 10 13:12:17 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Oct 10 13:12:17 2011] [notice] Server built: Oct 18 2010 01:58:12
[Mon Oct 10 13:12:17 2011] [notice] Parent: Created child process 13664
[Mon Oct 10 13:12:18 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 10 13:12:18 2011] [notice] Digest: done

编辑:我在'windows system log'中创建了一个错误日志:

  

hibátokozóalkalmazás:httpd.exe,verzió:2.2.17.0,időbélyeg:   0x4cbbe9e8,hibátokoko模块:php5ts.dll,verziószám:5.3.5.0,   időbélyeg:0x4d26013e,kivételkód:0xc0000005,hibapozíciója:   0x00081047,folyamatazonosító:0x17b8,azalkalmazásindításának   időpontja:0x01cc873e337fb7c0。

谢谢。

0 个答案:

没有答案