Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for image generation fails #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jesobreira
Copy link

Fixed a few bugs:

  • Image generation fails if the session was started previously, before including the captcha.php script
  • Image generation fails if captcha.php is included from a different folder

@jesobreira jesobreira changed the title bug fixes Fix for image generation fails Mar 13, 2016
@divinity76
Copy link

well, PHP is already doing this automatically with sufficient error_reporting, not sure it's a good idea to do it manually/explicitly (for no good reason i can think of)

@jesobreira
Copy link
Author

About the first item... I think it shall be done since develop with error_reporting set to hide errors is always a bad practice, and we can't let people develop hiding errors just to see the captcha when their project is still under development. Also, I'm not removing the error manually. I'm just verifying if any session was started before starting.

About the second, I think it's really a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants