INSERT INTO cart SET member_id='".$_SESSION['member_session']."', book_id='$id', session='".session_id()."', qty=1, price='$price', total=(qty * price) In this code, total is not getting the product of qty and price, any help?
@AndreaFaulds The draft RFC looks really good so far! I'll cross my fingers that it will pass.
Personally I don't think there should be aliases for any of the type names, otherwise a codebase might use different aliases in different places which would be confusing.
@TheodoreBrown Yeah, having some people write function foo(int $i, bool $b) and others write function foo(integer $i, boolean $b) would be annoying. I'm concerned people would try to use aliases that don't exist and be surprised when their code didn't work, though.
The previous RFC's patch would detect if you had a class name type hint like 'integer' and you passed an int to it, and would helpfully suggest you use the 'int' type hint in the error message
@JoeWatkins I think I have hard time understanding the use cases of pthreads, if it's not running requests in parallel, is it for running heavy tasks like mailing, heavy filesystem I/O and CURLs?
php experts I am using laravel 4.2 $.ajax({ type: 'post', url: 'http://localhost:81/larvel_exmp/public/users/'+this.value,
success: function($data) { $('span').html($data); } }); Route::get('users/{username}',function($username){ return $username; }); Can't get back any error or data instead If I use the resource routing for another controller then that works fine. Any Idea please??
some gunman taken a cafe full of staff and customers hostage ... been going on for ~8 hours now ...
he's got two bombs strapped to himself, and apparently four in the city, he is carrying a sawn off shotgun ... hostages are holding up an arabic flag in the window, and he's got a human shield ...
@AndreaFaulds So for the conversion from float -> int and checking for overflow... are you just reusing whatever Zend provides for that or are you doing it in ASM?
@JoeWatkins listened/watched that mp4 yesterday. Other than the low audio, I really had no constructive input. Wish it was longer, enjoyed it and learned abit
What's the argument against including it? You're removing code from your own codebase, to replace it with a single line to include a battle-tested library. Sure, your code works. Do you know what code has even less bug? No code.
You have no reason to *not* include composer's autoloader.
for his relatively narrow use case right now, yes. What about tomorrow? If he includes composer's autoloader, he'll never have to worry about autoloading, ever.