Commits

Ruslan Osmanov  committed 1a36da6

Fix: signum was not assigned via event_new

  • Participants
  • Parent commits ddbdebb

Comments (0)

Files changed (1)

 	}
 
 	if (what & EV_SIGNAL) {
-		if (zval_to_signum(ppzfd) == -1) {
+		fd = zval_to_signum(ppzfd);
+		if (fd == -1) {
 			php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid signal passed");
 			RETURN_FALSE;
 		}