This is an appeal from a judgment which found defendant guilty of possession of heroin, in violation of section 11500 of the Health and Safety Code, after a court trial; a jury having theretofore been properly waived. Appellant presents three points for consideration, any one of which he claims requires a reversal. (1) The evidence was erroneously admitted, over objection, in violation of the exclusionary rule relating to an unlawful search. (2) Testimony of the main witness was improperly admitted by way of transcript of his testimony taken at the preliminary hearing, again over objection; and (3) the trial judge erred in holding he had to commit the defendant to State prison because of a prior conviction which had not been proved during the trial. *888 Defendant also appeals from the order denying him a new trial.
Four federal narcotic officers, acting upon information from a reliable informant that narcotics were being sold by one Percy Howard, at 1513 Geary Street, went to those premises on the afternoon of December 12, 1956. Federal agent Prziborowshi rang the door bell at the vestibule on the lower floor; Howard, the occupant of the premises, thereupon admitted them after they had identified themselves; raising his hands in a manner to be searched as soon as he found out who they were. When asked if he minded if they searched his premises he said, “no” to go right ahead. This officer promptly placed Howard under arrest downstairs, while Agent Stenhouse and the other two went upstairs. When Prziborowski came upstairs to the living quarters with Howard, Agent Stenhouse already had defendant Green under arrest.
That portion of the testimony of Agent Stenhouse which came in by way of a transcript of his testimony given at the preliminary hearing insofar as it relates to the issues of reasonableness of the search and seizure is substantially as follows: He went past Agent Prziborowski at the doorway, went upstairs to the combination living room and bedroom and saw defendant attempting to hide behind the alcove of a small kitchenette. Green was holding a switchblade type knife in his right hand and held his left hand in a clenched or closed manner. Without permission, and without a search or any kind of warrant, he forced open the clenched fist, after taking the knife away from the defendant. He removed therefrom, what proved later to be, half a grain of heroin in a small white paper bindle and an improvised hypodermic outfit.
He further testified that on entering the upstairs apartment he announced he was a federal narcotics agent, which was simultaneous with his observation of the defendant holding the knife. He told defendant he then was under arrest. When asked for what the defendant was being arrested, he testified that he had reason to believe that the defendant was engaged in the traffic of narcotics; having theretofore gotten such information from Agent Prziborowski. He related further that Green had been the topic of conversation with the other agent that same day at another place and as near as he could recall “possibly during two or three week period.” The premises where defendant was searched and arrested were *889 those of Howard and his wife; and defendant Green was a visitor there, without that fact having been previously known by the narcotic agents. Their original intention in going to the premises was not for the purpose of arresting Green.
The mere presence of defendant in a place where narcotics are being or have recently been unlawfully smoked or used could not, without more, have justified the search and arrest without a warrant, for it has recently been held that Health and Safety Code, section 11556, making such conduct unlawful, is unconstitutional.
(Bonwell
v.
Justice Court,
The mere fact that one is in company of a person reasonably known or believed to have committed a felony, standing alone, is not enough to justify the police in making a search of his person.
(People
v.
Simon,
Respondent presents a further reason for affirmance which has not yet, to our knowledge, been passed upon by an appellate court of this state and that is: “Even if there had been an illegal search and seizure, the evidence was admissible since there was no evidence of state cooperation.” Reliance is placed on
Feldman
v.
United States,
We find no error in the admission of Stenhouse’s testimony by way of the transcript of testimony taken at the preliminary hearing. At the time of trial and for several months before that he was permanently stationed in Chicago, Illinois. If he actually was not in California, no amount of diligence could locate him there. Appellant argues that the court abused its discretion in finding that the witness was out of state, for only Officer Prziborowski testified to that fact. The appellant had ample opportunity to cross-examine the witness on this subject, had he chosen to do so; but contented himself with the objection that the plaintiff had not produced sufficient evidence to prove the fact.
The question as to what will constitute due diligence to secure the presence of a witness which will authorize the reading of such witness’ testimony taken at the preliminary hearing when such witness is shown to be unavailable, is largely within the discretion of the trial court and depends on the facts of each particular case. "The decision of a trial judge on the question of diligence and of the propriety of receiving or rejecting the evidence will not be disturbed on appeal unless it appears that there was an abuse of discretion.”
(People
v.
Cavazos,
In
People
v.
McIlvain,
In
People
v.
McNabb,
Appellant cites
People
v.
Kuranoff,
The defendant was represented by counsel at the preliminary hearing and he had a full opportunity to cross-examine the witness. The rule of admission (Pen. Code, § 686, subd. 3) is not changed if counsel refrained from conducting a full cross-examination because he believed he would have a second opportunity to do so at the trial. “It having been made to appear that the witness was outside of the state of California, it would have been useless for the prosecution to show what effort had been made by it to secure the attendance of the witness . . .
since there was no legal process by which he could have compelled such attendance.” (People
v.
Padilla,
Finally, appellant’s claim that the trial judge was of the belief at time of pronouncement of sentence that the law compelled him to impose a state prison sentence, is not borne out in the slightest degree by the record. As a matter of law, sentence to state prison was not mandatory and nowhere can we find that the trial judge thought it so. In
People
v.
Burke,
The few remarks of the judge, to the appellant’s attorney just before sentence was pronounced, clearly indicate he knew the applicable law viz: “If he is a sick man, we should be trying to help rather than punish him. Don’t you feel he would get better treatment at Vacaville rather than sitting out a year in the county jail? ... I think I’m doing him a service by sending him to a State prison. ’ ’
The order denying a new trial and the judgment are affirmed.
Dooling, Acting P. J., and Draper, J., concurred.
Notes
Assigned by Chairman of Judicial Council.
