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

Add Image class #1025

Merged
merged 18 commits into from
Aug 8, 2013
Merged
Prev Previous commit
Next Next commit
Update adapter.c
  • Loading branch information
dreamsxin committed Aug 7, 2013
commit c68adb3b4b7b89421f841349dd013b682f1c0d17
5 changes: 0 additions & 5 deletions ext/image/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,13 +771,8 @@ PHP_METHOD(Phalcon_Image_Adapter, background){

i = Z_STRLEN_P(tmp_color);

zend_printf("i:%d \n", i);

strncpy(str, Z_STRVAL_P(tmp_color), i > 6 ? 6 : i);


zend_printf("str:%s \n", str);

if (strlen(str) >= 6) {

arr[0] = str[0];
Expand Down