1. Ruslan Osmanov
  2. pecl-event

Commits

Ruslan Osmanov  committed 1a36da6

Fix: signum was not assigned via event_new

  • Participants
  • Parent commits ddbdebb
  • Branches master

Comments (0)

Files changed (1)

File event.c

View file
 	}
 
 	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;
 		}